mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
Enable original load/save system in HE100 games.
svn-id: r31529
This commit is contained in:
parent
607039db01
commit
3db5db1127
@ -1571,7 +1571,6 @@ void ScummEngine_v100he::o100_redimArray() {
|
||||
|
||||
void ScummEngine_v100he::o100_roomOps() {
|
||||
int a, b, c, d, e;
|
||||
byte filename[100];
|
||||
|
||||
byte subOp = fetchScriptByte();
|
||||
|
||||
@ -1635,9 +1634,17 @@ void ScummEngine_v100he::o100_roomOps() {
|
||||
break;
|
||||
|
||||
case 137:
|
||||
copyScriptString(filename, sizeof(filename));
|
||||
byte buffer[256];
|
||||
int r;
|
||||
|
||||
copyScriptString((byte *)buffer, sizeof(buffer));
|
||||
|
||||
r = convertFilePath(buffer);
|
||||
memcpy(_saveLoadFileName, buffer + r, sizeof(buffer) - r);
|
||||
debug(1, "o100_roomOps: case 137: filename %s", _saveLoadFileName);
|
||||
|
||||
_saveLoadFlag = pop();
|
||||
_saveLoadSlot = 1;
|
||||
_saveLoadSlot = 255;
|
||||
_saveTemporaryState = true;
|
||||
break;
|
||||
|
||||
|
@ -1820,7 +1820,7 @@ void ScummEngine_v72he::o72_deleteFile() {
|
||||
copyScriptString(buffer, sizeof(buffer));
|
||||
const char *filename = (char *)buffer + convertFilePath(buffer);
|
||||
|
||||
debug(1, "stub o72_deleteFile(%s)", filename);
|
||||
debug(1, "o72_deleteFile(%s)", filename);
|
||||
|
||||
_saveFileMan->removeSavefile(filename);
|
||||
}
|
||||
@ -1836,7 +1836,7 @@ void ScummEngine_v72he::o72_rename() {
|
||||
|
||||
_saveFileMan->renameSavefile(oldFilename, newFilename);
|
||||
|
||||
debug(1, "stub o72_rename(%s to %s)", oldFilename, newFilename);
|
||||
debug(1, "o72_rename(%s to %s)", oldFilename, newFilename);
|
||||
}
|
||||
|
||||
void ScummEngine_v72he::o72_getPixel() {
|
||||
|
Loading…
Reference in New Issue
Block a user