diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scumm.h | 1 | ||||
-rw-r--r-- | scumm/scummvm.cpp | 6 | ||||
-rw-r--r-- | scumm/vars.cpp | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h index 25a3ccf046..f393dc48e8 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -910,6 +910,7 @@ public: byte VAR_NUM_ACTOR; byte VAR_CURRENT_LIGHTS; byte VAR_CURRENTDRIVE; + byte VAR_CURRENTDISK; byte VAR_TMR_1; byte VAR_TMR_2; byte VAR_TMR_3; diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 3c3c76ba18..4e45dc9dc6 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -357,7 +357,11 @@ void Scumm::initScummVars() } else { _vars[VAR_V6_EMSSPACE] = 10000; } -} + + if (_features & GF_AFTER_V8) { // Fixme: How do we deal with non-cd installs? + _vars[VAR_CURRENTDISK] = 1; + } +} void Scumm::checkRange(int max, int min, int no, const char *str) { diff --git a/scumm/vars.cpp b/scumm/vars.cpp index a7e043d6c0..9349e59cdd 100644 --- a/scumm/vars.cpp +++ b/scumm/vars.cpp @@ -220,6 +220,7 @@ void Scumm_v8::setupScummVars() VAR_CAMERA_DEST_Y = 12; VAR_ROOM = 31; + VAR_CURRENTDISK = 42; VAR_ENTRY_SCRIPT = 51; VAR_ENTRY_SCRIPT2 = 52; |