diff options
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r-- | scumm/script_v5.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 5e4a45ede5..71b006ff00 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -1176,7 +1176,7 @@ void ScummEngine_v5::o5_saveLoadGame() { listSavegames(avail_saves, ARRAYSIZE(avail_saves)); makeSavegameName(filename, slot, false); - if (avail_saves[slot] && (_saveFileMan->openSavefile(filename, false))) + if (avail_saves[slot] && (_saveFileMan->openForLoading(filename))) result = 6; // save file exists else result = 7; // save file does not exist @@ -1948,14 +1948,14 @@ void ScummEngine_v5::o5_roomOps() { case 13: // SO_SAVE_STRING { - SaveFile *file; + OutSaveFile *file; char filename[256], *s; a = getVarOrDirectByte(PARAM_1); s = filename; while ((*s++ = fetchScriptByte())); - file = _saveFileMan->openSavefile(filename, true); + file = _saveFileMan->openForSaving(filename); if (file != NULL) { byte *ptr; ptr = getResourceAddress(rtString, a); @@ -1967,14 +1967,14 @@ void ScummEngine_v5::o5_roomOps() { } case 14: // SO_LOAD_STRING { - SaveFile *file; + InSaveFile *file; char filename[256], *s; a = getVarOrDirectByte(PARAM_1); s = filename; while ((*s++ = fetchScriptByte())); - file = _saveFileMan->openSavefile(filename, false); + file = _saveFileMan->openForLoading(filename); if (file != NULL) { byte *ptr; int len = 256, cnt = 0; |