DM: Swap warnings to stub method f363_highlightBoxDisable

This commit is contained in:
Bendegúz Nagy 2016-08-09 08:40:29 +02:00
parent 3f1fee6dcb
commit fd775be377
4 changed files with 10 additions and 9 deletions

View File

@ -395,7 +395,7 @@ void DMEngine::f2_gameloop() {
_eventMan->f77_hideMouse();
}
}
// F0363_COMMAND_HighlightBoxDisable();
_eventMan->f363_highlightBoxDisable();
f65_playPendingSound();
_championMan->f320_applyAndDrawPendingDamageAndWounds();
if (_championMan->_g303_partyDead)
@ -440,9 +440,9 @@ void DMEngine::f2_gameloop() {
if (_engineShouldQuit)
return;
_displayMan->updateScreen();
// if (!_g321_stopWaitingForPlayerInput) {
// F0363_COMMAND_HighlightBoxDisable();
// }
if (!_g321_stopWaitingForPlayerInput) {
_eventMan->f363_highlightBoxDisable();
}
_system->delayMillis(2);
if (++vblankCounter >= _g318_waitForInputMaxVerticalBlankCount * 5)
@ -537,7 +537,7 @@ void DMEngine::f444_endGame(bool doNotDrawCreditsOnly) {
f064_SOUND_RequestPlay_CPSD(k06_soundSCREAM, _dungeonMan->_g306_partyMapX, _dungeonMan->_g307_partyMapY, k0_soundModePlayImmediately);
f22_delay(240);
}
if (_displayMan->_g322_paletteSwitchingEnabled) {
uint16 oldPalTopAndBottomScreen[16];
for (uint16 i = 0; i < 16; ++i)

View File

@ -1504,7 +1504,7 @@ void EventManager::f369_commandProcessTypes101To108_clickInSpellSymbolsArea(Comm
L1131_ps_Box = &G0464_as_Graphic561_Box_SpellSymbolsAndDelete[L1130_ui_SymbolIndex];
f362_commandHighlightBoxEnable(L1131_ps_Box->_x1, L1131_ps_Box->_x2, L1131_ps_Box->_y1, L1131_ps_Box->_y2);
_vm->f22_delay(1);
warning(false, "MISSING CODE: F0363_COMMAND_HighlightBoxDisable");
f363_highlightBoxDisable();
if (L1130_ui_SymbolIndex < 6) {
_vm->_menuMan->f399_addChampionSymbol(L1130_ui_SymbolIndex);
} else {

View File

@ -258,7 +258,7 @@ class EventManager {
void f365_commandTurnParty(CommandType cmdType); // @ F0365_COMMAND_ProcessTypes1To2_TurnParty
void f366_commandMoveParty(CommandType cmdType); // @ F0366_COMMAND_ProcessTypes3To6_MoveParty
bool f375_processType80_clickDungeonView_isLeaderHandObjThrown(int16 posX, int16 posY); // @ F0375_COMMAND_ProcessType80_ClickInDungeonView_IsLeaderHandObjectThrown
void setMousePointerFromSpriteData(byte* mouseSprite);
void setMousePointerFromSpriteData(byte* mouseSprite);
public:
explicit EventManager(DMEngine *vm);
@ -320,6 +320,7 @@ public:
void f544_resetPressingEyeOrMouth(); // @ F0544_INPUT_ResetPressingEyeOrMouth
void f541_waitForMouseOrKeyActivity(); // @ F0541_INPUT_WaitForMouseOrKeyboardActivity
void f362_commandHighlightBoxEnable(int16 x1, int16 x2, int16 y1, int16 y2) { warning(false, "STUB METHOD: f362_commandHighlightBoxEnable"); }// @ F0362_COMMAND_HighlightBoxEnable
void f363_highlightBoxDisable() { warning(false, "STUB METHOD: f363_highlightBoxDisable"); } // @ F0363_COMMAND_HighlightBoxDisable
};
}

View File

@ -176,7 +176,7 @@ T0386006:
void MenuMan::f456_drawDisabledMenu() {
if (!_vm->_championMan->_g300_partyIsSleeping) {
warning(false, "MISSING CODE: F0363_COMMAND_HighlightBoxDisable");
_vm->_eventMan->f363_highlightBoxDisable();
_vm->_displayMan->_g578_useByteBoxCoordinates = false;
if (_vm->_inventoryMan->_g432_inventoryChampionOrdinal) {
if (_vm->_inventoryMan->_g424_panelContent == k4_PanelContentChest) {
@ -459,7 +459,7 @@ int16 MenuMan::f408_getClickOnSpellCastResult() {
L1260_ps_Champion = &_vm->_championMan->_gK71_champions[_vm->_championMan->_g514_magicCasterChampionIndex];
_vm->_eventMan->f78_showMouse();
warning(false, "MISSING CODE: F0363_COMMAND_HighlightBoxDisable");
_vm->_eventMan->f363_highlightBoxDisable();
if ((L1259_i_SpellCastResult = f412_getChampionSpellCastResult(_vm->_championMan->_g514_magicCasterChampionIndex)) != k3_spellCastFailureNeedsFlask) {
L1260_ps_Champion->_symbols[0] = '\0';
f397_drawAvailableSymbols(L1260_ps_Champion->_symbolStep = 0);