1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 11:29:59 +00:00

tried to fix CMenuManager::Process but still issues

This commit is contained in:
aap 2019-07-10 22:57:19 +02:00
parent 90e093cd47
commit f1951acd6e

View file

@ -64,15 +64,14 @@ CMenuManager &FrontEndMenuManager = *(CMenuManager*)0x8F59D8;
float lodMultiplier = *(float*)0x5F726C; float lodMultiplier = *(float*)0x5F726C;
// Stuff not in CMenuManager: // Stuff not in CMenuManager:
uint32 VibrationTime; uint32 &VibrationTime = *(uint32*)0x628CF8;
char* pEditString = (char*)0x628D00; char* pEditString = (char*)0x628D00;
int32 *&pControlEdit = *(int32**)0x628D08; int32 *&pControlEdit = *(int32**)0x628D08;
int8 DisplayComboButtonErrMsg; bool &DisplayComboButtonErrMsg = *(bool*)0x628D14;
int8 MouseButtonJustClicked; int32 &MouseButtonJustClicked = *(int32*)0x628D0C;
int8 JoyButtonJustClicked; int32 &JoyButtonJustClicked = *(int32*)0x628D10;
int32 &nTimeForSomething = *(int32*)0x628D54; int32 &nTimeForSomething = *(int32*)0x628D54;
int32 TypeOfControl = 0; //int32 *pControlTemp = 0;
int32 *pControlTemp = 0;
// Frontend inputs. // Frontend inputs.
@ -164,7 +163,7 @@ void CMenuManager::BuildStatLine(char *text, float *stat, bool aFloat, float* st
else else
sprintf(gString2, " %d %s %d", *(int*)stat, UnicodeToAscii(TheText.Get("FEST_OO")), *(int*)stat2); sprintf(gString2, " %d %s %d", *(int*)stat, UnicodeToAscii(TheText.Get("FEST_OO")), *(int*)stat2);
} }
else if (stat2) { else if (stat) {
if (aFloat) if (aFloat)
sprintf(gString2, " %.2f", *stat); sprintf(gString2, " %.2f", *stat);
else else
@ -1330,11 +1329,10 @@ void CMenuManager::Process(void)
if (!m_bSaveMenuActive && TheCamera.GetScreenFadeStatus() != FADE_0) if (!m_bSaveMenuActive && TheCamera.GetScreenFadeStatus() != FADE_0)
return; return;
//m_bLanguageLoaded = false; //XXX
m_bStartGameLoading = false; m_bStartGameLoading = false;
InitialiseChangedLanguageSettings(); InitialiseChangedLanguageSettings();
if (GetPadExitEnter()) //XXX only escape if (CPad::GetPad(0)->GetEscapeJustDown())
RequestFrontEndStartUp(); RequestFrontEndStartUp();
SwitchMenuOnAndOff(); SwitchMenuOnAndOff();
@ -1403,7 +1401,10 @@ void CMenuManager::Process(void)
SaveSettings(); SaveSettings();
} }
if (field_113 && !field_456) { if (field_113) {
if (field_456)
field_456 = 0;
else {
pControlEdit = CPad::EditCodesForControls(pControlEdit, 1); pControlEdit = CPad::EditCodesForControls(pControlEdit, 1);
JoyButtonJustClicked = 0; JoyButtonJustClicked = 0;
MouseButtonJustClicked = 0; MouseButtonJustClicked = 0;
@ -1422,6 +1423,7 @@ void CMenuManager::Process(void)
JoyButtonJustClicked = ControlsManager.GetJoyButtonJustDown(); JoyButtonJustClicked = ControlsManager.GetJoyButtonJustDown();
int32 TypeOfControl = 0;
if (JoyButtonJustClicked) if (JoyButtonJustClicked)
TypeOfControl = 3; TypeOfControl = 3;
if (MouseButtonJustClicked) if (MouseButtonJustClicked)
@ -1454,6 +1456,7 @@ void CMenuManager::Process(void)
field_456 = 0; field_456 = 0;
} }
} }
}
if ((m_nCurrScreen == MENUPAGE_13 || m_nCurrScreen == MENUPAGE_16) && CTimer::GetTimeInMillisecondsPauseMode() > field_558) { if ((m_nCurrScreen == MENUPAGE_13 || m_nCurrScreen == MENUPAGE_16) && CTimer::GetTimeInMillisecondsPauseMode() > field_558) {
m_nCurrScreen = m_nPrevScreen; m_nCurrScreen = m_nPrevScreen;
@ -1469,6 +1472,7 @@ void CMenuManager::Process(void)
else { else {
UnloadTextures(); UnloadTextures();
field_452 = 0; field_452 = 0;
*(bool*)0x5F33E4 = true;
// byte_5F33E4 = 1; // unused // byte_5F33E4 = 1; // unused
m_nPrevScreen = 0; m_nPrevScreen = 0;
m_nCurrScreen = m_nPrevScreen; m_nCurrScreen = m_nPrevScreen;