virtual ~SaveLoadWindow() { /* pause is only used in single-player, non-editor mode, non menu mode */ if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) { DoCommandP(0, PM_PAUSED_SAVELOAD, 0, CMD_PAUSE); } FiosFreeSavegameList(); }
void BuildFileList() { _fios_path_changed = true; FiosFreeSavegameList(); switch (_saveload_mode) { case SLD_LOAD_SCENARIO: case SLD_SAVE_SCENARIO: FiosGetScenarioList(_saveload_mode); break; case SLD_SAVE_HEIGHTMAP: case SLD_LOAD_HEIGHTMAP: FiosGetHeightmapList(_saveload_mode); break; default: FiosGetSavegameList(_saveload_mode); break; } /* Invalidate saveload window */ InvalidateWindowData(WC_SAVELOAD, 0, 2, true); }
void BuildFileList() { _fios_path_changed = true; FiosFreeSavegameList(); switch (_saveload_mode) { case SLD_NEW_GAME: case SLD_LOAD_SCENARIO: case SLD_SAVE_SCENARIO: FiosGetScenarioList(_saveload_mode); break; case SLD_LOAD_HEIGHTMAP: FiosGetHeightmapList(_saveload_mode); break; default: FiosGetSavegameList(_saveload_mode); break; } }