diff options
author | Max Horn | 2004-11-27 00:26:11 +0000 |
---|---|---|
committer | Max Horn | 2004-11-27 00:26:11 +0000 |
commit | 876e738dce6e3725ce28d8caf1520e71edfe09f0 (patch) | |
tree | 582797db161e7209b70fb3c563bdb5d5b3a2e060 /simon | |
parent | d56cd17183008830b4fd50d903f7a0250928b691 (diff) | |
download | scummvm-rg350-876e738dce6e3725ce28d8caf1520e71edfe09f0.tar.gz scummvm-rg350-876e738dce6e3725ce28d8caf1520e71edfe09f0.tar.bz2 scummvm-rg350-876e738dce6e3725ce28d8caf1520e71edfe09f0.zip |
Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)
svn-id: r15901
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 193619f937..7a60e0ee71 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -2733,12 +2733,11 @@ int SimonEngine::count_savegames() { char *prefix = gen_savename(999); prefix[strlen(prefix)-3] = '\0'; - _saveFileMan->list_savefiles(prefix, getSavePath(), marks, 256); + _saveFileMan->listSavefiles(prefix, marks, 256); while (i < 256) { if (marks[i] && - (f = _saveFileMan->open_savefile(gen_savename(i), getSavePath(), - false))) { + (f = _saveFileMan->openSavefile(gen_savename(i), false))) { i++; delete f; } else @@ -2758,7 +2757,7 @@ int SimonEngine::display_savegame_list(int curpos, bool load, char *dst) { slot = curpos; while (curpos + 6 > slot) { - if(!(in = _saveFileMan->open_savefile(gen_savename(slot), getSavePath(), false))) + if(!(in = _saveFileMan->openSavefile(gen_savename(slot), false))) break; in->read(dst, 18); @@ -2782,7 +2781,7 @@ int SimonEngine::display_savegame_list(int curpos, bool load, char *dst) { } } else { if (curpos + 6 == slot) { - if((in = _saveFileMan->open_savefile(gen_savename(slot), getSavePath(), false))) { + if((in = _saveFileMan->openSavefile(gen_savename(slot), false))) { slot++; delete in; } @@ -4917,7 +4916,7 @@ bool SimonEngine::save_game(uint slot, char *caption) { #endif - f = _saveFileMan->open_savefile(gen_savename(slot), getSavePath(), true); + f = _saveFileMan->openSavefile(gen_savename(slot), true); if (f == NULL) { _lock_word &= ~0x100; return false; @@ -5018,7 +5017,7 @@ bool SimonEngine::load_game(uint slot) { #endif - f = _saveFileMan->open_savefile(gen_savename(slot), getSavePath(), false); + f = _saveFileMan->openSavefile(gen_savename(slot), false); if (f == NULL) { _lock_word &= ~0x100; return false; |