From cf2b3733d86ed17dc85b1cf5c5b3e0cac93e21d2 Mon Sep 17 00:00:00 2001 From: krogenth Date: Wed, 27 Dec 2023 18:43:26 -0500 Subject: [PATCH] switch from using filename to filelocation --- src/G2DataGUI.Common/Data/Maps/Map.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/G2DataGUI.Common/Data/Maps/Map.cs b/src/G2DataGUI.Common/Data/Maps/Map.cs index c90a45b..69c741d 100644 --- a/src/G2DataGUI.Common/Data/Maps/Map.cs +++ b/src/G2DataGUI.Common/Data/Maps/Map.cs @@ -98,12 +98,12 @@ public static Map ReadMap(FileStream reader, string filepath) public void WriteMap() { // we need the file to write to - if (Filename.Length <= 0) + if (FileLocation.Length <= 0) { return; } - using FileStream writer = File.Open(Filename, FileMode.OpenOrCreate, FileAccess.ReadWrite); + using FileStream writer = File.Open(FileLocation, FileMode.OpenOrCreate, FileAccess.ReadWrite); writer.Seek(Header.OffsetMapEntries, SeekOrigin.Begin); foreach (var entry in Entries)