diff options
author | Paul Gilbert | 2012-11-17 20:49:07 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-11-17 20:49:07 +1100 |
commit | 0fdea57c544c8c1bd1c816262d9319367334eb83 (patch) | |
tree | b08a07a39f490ca8183e24f42295e1f8890b2eae /engines/hopkins/menu.cpp | |
parent | 8b0ae07969dbdbeb9ad955ab1f23c570ca300167 (diff) | |
download | scummvm-rg350-0fdea57c544c8c1bd1c816262d9319367334eb83.tar.gz scummvm-rg350-0fdea57c544c8c1bd1c816262d9319367334eb83.tar.bz2 scummvm-rg350-0fdea57c544c8c1bd1c816262d9319367334eb83.zip |
HOPKINS: Lots of code implemented for Hopkin's computer
Diffstat (limited to 'engines/hopkins/menu.cpp')
-rw-r--r-- | engines/hopkins/menu.cpp | 196 |
1 files changed, 0 insertions, 196 deletions
diff --git a/engines/hopkins/menu.cpp b/engines/hopkins/menu.cpp index 56b73c1fa1..b8ec31d67c 100644 --- a/engines/hopkins/menu.cpp +++ b/engines/hopkins/menu.cpp @@ -233,202 +233,6 @@ int MenuManager::MENU() { return result; } -void MenuManager::COMPUT_HOPKINS(int idx) { - // This is a text mode display? - warning("TODO: COMPUT_HOPKINS"); - /* - int v2; - char *v3; - int v4; - char v5; - char *v6; - int v7; - char v8; - char *v9; - int v10; - char v11; - int v12; - Common::String s; - Common::String s2; - - _vm->_eventsManager.ESC_KEY = 0; - v2 = 0; - _vm->_graphicsManager.RESET_SEGMENT_VESA(); - setvideomode(); - settextcolor(4); - _vm->_graphicsManager.videkey(); - settextposition(2, 4); - if (idx == 1) - outtext((const char *)&MenuText[10]); - if (idx == 2) - outtext((const char *)&MenuText[0xDE]); - if (idx == 3) - outtext((const char *)&MenuText[0x1B2]); - settextcolor(1); - if (idx == 3) { - settextposition(10, 8); - outtext((const char *)&MenuText[0x286]); - } - settextposition(12, 28); - outtext((const char *)&MenuText[0x35A]); - settextposition(14, 35); - v3 = &s; - memset(&s, 0, 8u); - TXT4(280, 224, 8); - s = Sup_string; - if (idx == 1) { - s2 = "HOPKINS"; - v4 = 8; - v5 = 1; - do { - if (!v4) - break; - v5 = *v3++ == *s2++; - --v4; - } while (v5); - if (v5) - v2 = 1; - } - if (idx == 2) { - v6 = &s; - s2 = "328MHZA"; - v7 = 8; - v8 = 1; - do { - if (!v7) - break; - v8 = *v6++ == *s2++; - --v7; - } while (v8); - if (v8) - v2 = 1; - } - if (idx == 3) { - v9 = &s; - s2 = "ALLFREE"; - v10 = 8; - v11 = 1; - do { - if (!v10) - break; - v11 = *v9++ == *s2++; - --v10; - } while (v11); - if (v11) - v2 = 1; - } - if (v2) { - while (1) { - ESC_KEY = 0; - _vm->_graphicsManager.videkey(); - clearscreen(); - settextcolor(4); - settextposition(2, 4); - if (idx == 1) - outtext((const char *)&MenuText[10]); - if (idx == 2) - outtext((const char *)&MenuText[0xDE]); - if (idx == 3) - outtext((const char *)&MenuText[0x1B2]); - settextcolor(15); - settextposition(8, 25); - settextcolor(15); - outtext2((const char *)&MenuText[0x502]); - settextposition(20, 25); - outtext2((const char *)&MenuText[0x5D6]); - if (idx == 1) { - settextposition(10, 25); - outtext2((const char *)&MenuText[0x6AA]); - settextposition(12, 25); - outtext2((const char *)&MenuText[0x77E]); - settextposition(14, 25); - outtext2((const char *)&MenuText[0x852]); - settextposition(16, 25); - outtext2((const char *)&MenuText[0x926]); - } - if (idx == 2) { - _vm->_graphicsManager.videkey(); - settextposition(10, 25); - outtext2((const char *)&MenuText[0x95A]); - settextposition(12, 25); - outtext2((const char *)&MenuText[0xACE]); - settextposition(14, 25); - outtext2((const char *)&MenuText[0xBA2]); - settextposition(16, 25); - outtext2((const char *)&MenuText[0xC76]); - settextposition(18, 25); - outtext2((const char *)&MenuText[0xD4A]); - } - do { - v12 = (byte)keywin(v2, s2); - v2 = 0; - if ((uint16)(v12 - 48) <= 8u) - v2 = 1; - } while (v2 != 1); - if (v12 == 48) - break; - if (v12 == 49) { - GAMES(s2); - } else if (idx == 1) { - _vm->_graphicsManager.videkey(); - clearscreen(); - settextcolor(4); - settextposition(2, 4); - outtext((const char *)&MenuText[10]); - settextcolor(15); - if (v12 == 50) - LIT_TEXTE(1); - if (v12 == 51) - LIT_TEXTE(2); - if (v12 == 52) - LIT_TEXTE(3); - if (v12 == 53) - LIT_TEXTE(4); - } else if (idx == 2) { - clearscreen(); - settextcolor(4); - settextposition(2, 4); - outtext((const char *)&MenuText[0xDE]); - settextcolor(15); - if (v12 == 50) - LIT_TEXTE(6); - if (v12 == 51) - LIT_TEXTE(7); - if (v12 == 52) - LIT_TEXTE(8); - if (v12 == 53) - LIT_TEXTE(9); - if (v12ii == 54) { - LIT_TEXTE(10); - _vm->_globals.SAUVEGARDE->data[svField270] = 4; - } - } - } - _vm->_graphicsManager.DD_Lock(); - Cls_Video(); - _vm->_graphicsManager.DD_Unlock(); - _vm->_graphicsManager.DD_VBL(); - RESTORE_POLICE(); - } else { - settextcolor(4); - settextposition(16, 25); - outtext((const char *)&MenuText[0x42E]); - _vm->_eventsManager.VBL(); - memset(_vm->_graphicsManager.VESA_BUFFER, 0, 0x4AFFFu); - _vm->_graphicsManager.DD_Lock(); - Cls_Video(); - _vm->_graphicsManager.DD_Unlock(); - _vm->_graphicsManager.DD_VBL(); - RESTORE_POLICE(); - _vm->_eventsManager.MOUSE_OFF(); - } - if (idx == 1) - _vm->_globals.SORTIE = 13; - if ((uint16)(idx - 2) <= 1u) - _vm->_globals.SORTIE = 14; - return _vm->_graphicsManager.RESET_SEGMENT_VESA(); - */ -} } // End of namespace Hopkins |