public static void CheckVersionAndLoadGame(string saveFileName)
 {
     PreLoadUtility.CheckVersionAndLoad(GenFilePaths.FilePathForSavedGame(saveFileName), ScribeMetaHeaderUtility.ScribeHeaderMode.Map, delegate
     {
         GameDataSaveLoader.LoadGame(saveFileName);
     });
 }
Example #2
0
 public override void Start()
 {
     base.Start();
     try
     {
         Current.Game      = null;
         musicManagerEntry = new MusicManagerEntry();
         FileInfo fileInfo = Root.checkedAutostartSaveFile ? null : SaveGameFilesUtility.GetAutostartSaveFile();
         Root.checkedAutostartSaveFile = true;
         if (fileInfo != null)
         {
             GameDataSaveLoader.LoadGame(fileInfo);
         }
     }
     catch (Exception arg)
     {
         Log.Error("Critical error in root Start(): " + arg);
     }
 }
 public static void LoadGame(FileInfo saveFile)
 {
     GameDataSaveLoader.LoadGame(Path.GetFileNameWithoutExtension(saveFile.Name));
 }