diff options
author | Strangerke | 2011-07-28 11:08:56 +0200 |
---|---|---|
committer | Strangerke | 2011-07-28 11:08:56 +0200 |
commit | df7d771feb8ad9f532d6c8ba768d77cf491116b2 (patch) | |
tree | ff55d66b33bf101e136f2796dfa6470f810c0364 /engines/cge | |
parent | dad302b640524224cb9381b3cfdcac7f430f0b21 (diff) | |
download | scummvm-rg350-df7d771feb8ad9f532d6c8ba768d77cf491116b2.tar.gz scummvm-rg350-df7d771feb8ad9f532d6c8ba768d77cf491116b2.tar.bz2 scummvm-rg350-df7d771feb8ad9f532d6c8ba768d77cf491116b2.zip |
CGE: Remove summa variable, formerly used for the protection check
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/cge_main.cpp | 14 | ||||
-rw-r--r-- | engines/cge/startup.cpp | 19 | ||||
-rw-r--r-- | engines/cge/startup.h | 1 |
3 files changed, 3 insertions, 31 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp index 3bffa1f732..d6dd82dbe0 100644 --- a/engines/cge/cge_main.cpp +++ b/engines/cge/cge_main.cpp @@ -684,9 +684,7 @@ void CGEEngine::switchCave(int cav) { _hero->park(); _hero->step(0); if (!_isDemo) - ///// protection: auto-destruction on! ---------------------- - _vga->_spareQ->_show = Startup::_summa * (cav <= CAVE_MAX); - /////-------------------------------------------------------- + _vga->_spareQ->_show = 0; } _cavLight->gotoxy(CAVE_X + ((_now - 1) % CAVE_NX) * CAVE_DX + CAVE_SX, CAVE_Y + ((_now - 1) / CAVE_NX) * CAVE_DY + CAVE_SY); @@ -1686,15 +1684,9 @@ bool CGEEngine::showTitle(const char *name) { strcpy(_usrFnam, progName(kSvgExt)); usr_ok = true; } else { - //----------------------------------------- #ifndef EVA -#ifdef CD - Startup::_summa |= (0xC0 + (DriveCD(0) << 6)) & 0xFF; -#else - // At this point the game originally read the boot sector to get - // the serial number for it's copy protection check -#endif - //----------------------------------------- + // At this point the game originally set the protection variables + // used by the copy protection check movie("X00"); // paylist _vga->copyPage(1, 2); _vga->copyPage(0, 1); diff --git a/engines/cge/startup.cpp b/engines/cge/startup.cpp index 19ec2879c6..9a9d9ccfee 100644 --- a/engines/cge/startup.cpp +++ b/engines/cge/startup.cpp @@ -41,7 +41,6 @@ extern char _copr[]; int Startup::_mode = 0; int Startup::_soundOk = 0; -uint16 Startup::_summa; void quitNow(int ref) { @@ -50,8 +49,6 @@ void quitNow(int ref) { bool Startup::getParms() { - _summa = 0; - /* int i = _argc; while (i > 1) { @@ -98,22 +95,6 @@ bool Startup::getParms() { if (n >= 2) SoundOk = 2; } - if (_vm->_isDemo) - // protection disabled - Summa = 0; - else { -#ifdef EVA - union { dosdate_t d; uint32 n; } today; - _dos_getdate(&today.d); - id.disk += (id.disk < today.n); -#endif -#ifdef CD - Summa = 0; -#else - // disk signature checksum - Summa = ChkSum(Copr, sizeof(Ident)); -#endif - } if (SNDDrvInfo.MDEV != DEV_GM) SNDDrvInfo.MDEV = SNDDrvInfo.DDEV; diff --git a/engines/cge/startup.h b/engines/cge/startup.h index d9416ff6a4..a9de89a5e2 100644 --- a/engines/cge/startup.h +++ b/engines/cge/startup.h @@ -52,7 +52,6 @@ class Startup { public: static int _mode; static int _soundOk; - static uint16 _summa; Startup(); }; |