aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/script_v100he.cpp
diff options
context:
space:
mode:
authorTravis Howell2008-04-17 07:01:15 +0000
committerTravis Howell2008-04-17 07:01:15 +0000
commit3db5db112719e71e43c7c8b18efc4cefcfeaf859 (patch)
tree455632677a73e51e3b706ab78eada65b9a4f95ad /engines/scumm/he/script_v100he.cpp
parent607039db0151339e847f54e4664f4358be4b42e4 (diff)
downloadscummvm-rg350-3db5db112719e71e43c7c8b18efc4cefcfeaf859.tar.gz
scummvm-rg350-3db5db112719e71e43c7c8b18efc4cefcfeaf859.tar.bz2
scummvm-rg350-3db5db112719e71e43c7c8b18efc4cefcfeaf859.zip
Enable original load/save system in HE100 games.
svn-id: r31529
Diffstat (limited to 'engines/scumm/he/script_v100he.cpp')
-rw-r--r--engines/scumm/he/script_v100he.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/scumm/he/script_v100he.cpp b/engines/scumm/he/script_v100he.cpp
index f651e87bde..f72701c229 100644
--- a/engines/scumm/he/script_v100he.cpp
+++ b/engines/scumm/he/script_v100he.cpp
@@ -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;