diff options
author | Travis Howell | 2005-05-01 07:16:48 +0000 |
---|---|---|
committer | Travis Howell | 2005-05-01 07:16:48 +0000 |
commit | 2b351f73f46004fd0817a5650dd9de6b5190af3a (patch) | |
tree | 2f087e20084e398f2525fee7ffebdc278e50b335 /scumm | |
parent | c76f228f67bfd8833459e8abdcf16d26daf851f3 (diff) | |
download | scummvm-rg350-2b351f73f46004fd0817a5650dd9de6b5190af3a.tar.gz scummvm-rg350-2b351f73f46004fd0817a5650dd9de6b5190af3a.tar.bz2 scummvm-rg350-2b351f73f46004fd0817a5650dd9de6b5190af3a.zip |
VAR 78 controls platform in HE80+ games.
svn-id: r17881
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/intern.h | 1 | ||||
-rw-r--r-- | scumm/scumm.cpp | 1 | ||||
-rw-r--r-- | scumm/vars.cpp | 5 |
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; } |