Ignore:
Timestamp:
Nov 9, 2021, 6:28:33 PM (3 years ago)
Author:
alloc
Message:

Preparations for A20 release
Changes usage of "SteamID" to "UserID" in console commands
Also changes a bunch of the WebAPI stuff to show / use UserIDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/PersistentData/PersistentContainer.cs

    r326 r369  
    4646
    4747                public void Save () {
    48                         Stream stream = File.Open (GameUtils.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Create);
     48                        Stream stream = File.Open (GameIO.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Create);
    4949                        BinaryFormatter bFormatter = new BinaryFormatter ();
    5050                        bFormatter.Serialize (stream, this);
     
    5353
    5454                public static bool Load () {
    55                         if (!File.Exists (GameUtils.GetSaveGameDir () + "/AllocsPeristentData.bin")) {
     55                        if (!File.Exists (GameIO.GetSaveGameDir () + "/AllocsPeristentData.bin")) {
    5656                                return false;
    5757                        }
     
    5959                        try {
    6060                                PersistentContainer obj;
    61                                 Stream stream = File.Open (GameUtils.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Open);
     61                                Stream stream = File.Open (GameIO.GetSaveGameDir () + "/AllocsPeristentData.bin", FileMode.Open);
    6262                                BinaryFormatter bFormatter = new BinaryFormatter ();
    6363                                obj = (PersistentContainer) bFormatter.Deserialize (stream);
Note: See TracChangeset for help on using the changeset viewer.