public void Load() { if (SAVEGAME.IsLoadable) { SAVEGAME.Load(); Load(SAVEGAME.Node); if (this.UseSaveGameSettings) { return; } } // If we get here, the SAVEGAME settings told us it's commiting suicide. else if (SETTINGS.IsLoadable) { SETTINGS.Load(); } else { SETTINGS.Clear(); this.Save(); } Load(SETTINGS.Node); if (SAVEGAME.IsLoadable) { SAVEGAME.Destroy(); } }
public void Save() { if (this.UseSaveGameSettings) { this.Save(SAVEGAME.Node); SAVEGAME.Save(); } else { this.Save(SETTINGS.Node); SETTINGS.Save(); } }