diff options
author | rubidium <rubidium@openttd.org> | 2009-03-04 09:53:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-04 09:53:31 +0000 |
commit | 0d8da02ec1ec610931c2fdbe05a29e7ee3a49144 (patch) | |
tree | 9a2c02d0b0de1ad7374ee64afe0beadcb8f2b21f /src/fios.cpp | |
parent | f0de54bc10d158bbb1ae58b628c0896a56880540 (diff) | |
download | openttd-0d8da02ec1ec610931c2fdbe05a29e7ee3a49144.tar.xz |
(svn r15610) -Change: allow loading of heightmaps and savegames (any form) that are in .tar files
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 548efbfec..8c68a9e62 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -37,7 +37,7 @@ extern void FiosGetDrives(); extern bool FiosGetDiskFreeSpace(const char *path, uint64 *tot); /* get the name of an oldstyle savegame */ -extern void GetOldSaveGameName(const char *path, const char *file, char *title, const char *last); +extern void GetOldSaveGameName(const char *file, char *title, const char *last); /** * Compare two FiosItem's. Used with qsort when sorting the file list. @@ -343,7 +343,7 @@ FiosType FiosGetSavegameListCallback(SaveLoadDialogMode mode, const char *file, if (mode == SLD_LOAD_GAME || mode == SLD_LOAD_SCENARIO) { if (strcasecmp(ext, ".ss1") == 0 || strcasecmp(ext, ".sv1") == 0 || strcasecmp(ext, ".sv2") == 0) { - if (title != NULL) GetOldSaveGameName(_fios_path, file, title, last); + if (title != NULL) GetOldSaveGameName(file, title, last); return FIOS_TYPE_OLDFILE; } } @@ -392,7 +392,7 @@ static FiosType FiosGetScenarioListCallback(SaveLoadDialogMode mode, const char if (mode == SLD_LOAD_GAME || mode == SLD_LOAD_SCENARIO || mode == SLD_NEW_GAME) { if (strcasecmp(ext, ".sv0") == 0 || strcasecmp(ext, ".ss0") == 0 ) { - GetOldSaveGameName(_fios_path, file, title, last); + GetOldSaveGameName(file, title, last); return FIOS_TYPE_OLD_SCENARIO; } } |