aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/intern.h1
-rw-r--r--scumm/scumm.cpp1
-rw-r--r--scumm/vars.cpp5
3 files changed, 5 insertions, 2 deletions
diff --git a/scumm/intern.h b/scumm/intern.h
index 676d2a256a..d8778a8573 100644
--- a/scumm/intern.h
+++ b/scumm/intern.h
@@ -950,6 +950,7 @@ protected:
byte VAR_NUM_PALETTES;
byte VAR_NUM_UNK;
byte VAR_POLYGONS_ONLY;
+ byte VAR_PLATFORM;
byte VAR_WINDOWS_VERSION;
byte VAR_U32_VERSION;
byte VAR_WIZ_TCOLOR;
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index fffe88e969..577b63b5b1 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -1291,6 +1291,7 @@ ScummEngine_v72he::ScummEngine_v72he(GameDetector *detector, OSystem *syst, cons
VAR_NUM_PALETTES = 0xFF;
VAR_NUM_UNK = 0xFF;
VAR_POLYGONS_ONLY = 0xFF;
+ VAR_PLATFORM = 0xFF;
VAR_WINDOWS_VERSION = 0xFF;
VAR_U32_VERSION = 0xFF;
VAR_WIZ_TCOLOR = 0xFF;
diff --git a/scumm/vars.cpp b/scumm/vars.cpp
index c6a1c6fe43..0875b744e7 100644
--- a/scumm/vars.cpp
+++ b/scumm/vars.cpp
@@ -270,7 +270,8 @@ void ScummEngine_v72he::setupScummVars() {
VAR_NUM_SOUND_CHANNELS = 56;
}
if (_heversion >= 80)
- VAR_WINDOWS_VERSION = 79;
+ VAR_PLATFORM = 78; // 1 is PC, 2 is Macintosh
+ VAR_WINDOWS_VERSION = 79; // 31 is Windows 3.1, 40 is Windows 95+
VAR_KEY_STATE = 86;
VAR_NUM_SOUND_CHANNELS = 88;
if (_heversion >= 90) {
@@ -551,7 +552,7 @@ void ScummEngine_v72he::initScummVars() {
void ScummEngine_v80he::initScummVars() {
ScummEngine_v72he::initScummVars();
- VAR(78) = 1;
+ VAR(VAR_PLATFORM) = 1;
VAR(VAR_WINDOWS_VERSION) = 40;
}