- Timestamp:
- Nov 9, 2021, 6:28:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/PersistentContainer.cs
r326 r369 46 46 47 47 public void Save () { 48 Stream stream = File.Open (Game Utils.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Create);48 Stream stream = File.Open (GameIO.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Create); 49 49 BinaryFormatter bFormatter = new BinaryFormatter (); 50 50 bFormatter.Serialize (stream, this); … … 53 53 54 54 public static bool Load () { 55 if (!File.Exists (Game Utils.GetSaveGameDir () + "/AllocsPeristentData.bin")) {55 if (!File.Exists (GameIO.GetSaveGameDir () + "/AllocsPeristentData.bin")) { 56 56 return false; 57 57 } … … 59 59 try { 60 60 PersistentContainer obj; 61 Stream stream = File.Open (Game Utils.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Open);61 Stream stream = File.Open (GameIO.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Open); 62 62 BinaryFormatter bFormatter = new BinaryFormatter (); 63 63 obj = (PersistentContainer) bFormatter.Deserialize (stream);
Note:
See TracChangeset
for help on using the changeset viewer.