- Timestamp:
- Jul 3, 2015, 4:16:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/PersistentContainer.cs
r230 r238 36 36 public void Save () 37 37 { 38 Stream stream = File.Open ( StaticDirectories.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Create);38 Stream stream = File.Open (GameUtils.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Create); 39 39 BinaryFormatter bFormatter = new BinaryFormatter (); 40 40 bFormatter.Serialize (stream, this); … … 44 44 public static bool Load () 45 45 { 46 if (File.Exists ( StaticDirectories.GetSaveGameDir () + "/AllocsPeristentData.bin")) {46 if (File.Exists (GameUtils.GetSaveGameDir () + "/AllocsPeristentData.bin")) { 47 47 try { 48 48 PersistentContainer obj; 49 Stream stream = File.Open ( StaticDirectories.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Open);49 Stream stream = File.Open (GameUtils.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Open); 50 50 BinaryFormatter bFormatter = new BinaryFormatter (); 51 51 obj = (PersistentContainer)bFormatter.Deserialize (stream);
Note:
See TracChangeset
for help on using the changeset viewer.