Beispiel #1
0
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);
}
Beispiel #2
0
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;
    }
}