The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body. src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT, from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra). structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2630 lines
134 KiB
C++
2630 lines
134 KiB
C++
#include "classes.h"
|
|
|
|
// 00986450
|
|
void MenuManager::constructor()
|
|
{
|
|
void *mapHead;
|
|
Vector *viewPosition;
|
|
int viewPositionsLeft;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
undefined4 local_14;
|
|
|
|
puStack_18 = &LAB_00b0d1fb;
|
|
local_1c = ExceptionList;
|
|
ExceptionList = &local_1c;
|
|
(this->_menuStateHistory)._begin = (void *)0x0;
|
|
(this->_menuStateHistory)._end = (void *)0x0;
|
|
(this->_menuStateHistory)._capacity = (void *)0x0;
|
|
local_14 = 0;
|
|
(GHIDRA_CAST<KColor *>((&this->_fadeInColor)))->KColor::SetFromARGB(0xff000000);
|
|
this->_selectedMenuID = 0;
|
|
(this->_ViewPosition).y = 0.0;
|
|
(this->_ViewPosition).x = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&this->_MenuShadowSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x160)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x164)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x168)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x16c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x170)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x174)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 4;
|
|
Seeds::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 5;
|
|
(this->_menuTitle).PositionY = 0.0;
|
|
(this->_menuTitle).PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuTitle).TitleScreenSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2f0)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 6;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x308)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x304)))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x30c)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 7;
|
|
_eh_vector_constructor_iterator_(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x420))),0x114,3,ANM2::constructor,ANM2::~ANM2);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 8;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x764)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 9;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x878)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 10;
|
|
*GHIDRA_CAST<undefined ***>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x98c)))) = KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
KAGE::SmartPointer<LobbyImplBase>::SmartPointer(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x990))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xb;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x998)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xac8))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xaac)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xab0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xab4)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xab8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xabc)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
|
|
(this->_menuGame).PositionY = 0.0;
|
|
(this->_menuGame).PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuGame).GameMenuSprite)))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xd;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuGame).ContinueWidgetSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdc8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcc)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdd0)))) = 0xffffffff;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xe;
|
|
this->_menuDailyChallenge = (Menu_DailyChallenge)0x0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdd8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xddc)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xde4)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xde0)))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xde8)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xf;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xefc)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf00)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf04)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf08)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf0c))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf10)))))))->ANM2::constructor();
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1024)))))))->KColor::SetFromARGB(0xffffffff);
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1038)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x103c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1040)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1044)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1174))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1158)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x115c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1160)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1164)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1168)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x11;
|
|
Leaderboard::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x152c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x1530)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x12;
|
|
(GHIDRA_CAST<Menu_Character *>((&this->_menuCharacter)))->Menu_Character::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x13;
|
|
(this->_menuSpecialSeeds).SelectedElement = 0;
|
|
(this->_menuSpecialSeeds).State = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuSpecialSeeds))) + 0x18)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuSpecialSeeds))) + 0x14)))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuSpecialSeeds).SpecialSeedsSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x264c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x265c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2660)))) = 0xf;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x264c))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2664)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2674)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2678)))) = 0xf;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2664))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x267c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2680)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x2684)))) = 0;
|
|
(this->_menuSpecialSeeds).HoldInputTimer = 0;
|
|
(this->_menuSpecialSeeds).State = GHIDRA_INT(g_vectorZero.x);
|
|
(this->_menuSpecialSeeds).SelectedElement = GHIDRA_INT(g_vectorZero.y);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x14;
|
|
(this->_menuChallenge).PositionY = 0.0;
|
|
(this->_menuChallenge).PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuChallenge).ChallengeMenuSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x27b0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0x27b4)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x15;
|
|
(this->_menuCollection).PositionY = 0.0;
|
|
(this->_menuCollection).PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuCollection).CollectionMenuSprite)))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x16;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuCollection).DeathScreenSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuCollection))) + 0x240)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuCollection))) + 0x244)))) = 0;
|
|
(this->_menuCollection).MoveYAxisDirection = 0.0;
|
|
(this->_menuCollection).MoveXAxisDirection = 0.0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuCollection))) + 0x250)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuCollection))) + 0x254)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuCollection))) + 0x258)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x17;
|
|
(this->_menuStats)._PositionY = 0.0;
|
|
(this->_menuStats)._PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuStats)._StatsMenuSprite)))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x18;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuStats)._achievementsSprite)))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x19;
|
|
_eh_vector_constructor_iterator_
|
|
(&(this->_menuStats)._achievementMiniSprite1,0x114,0xb,ANM2::constructor,ANM2::~ANM2);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1a;
|
|
_eh_vector_constructor_iterator_
|
|
((this->_menuStats)._achievementOverlayEntries,0x34,0x282,
|
|
GHIDRA_CAST<_func_void_void_ptr *>(&LAB_009ec190),FUN_00420b00);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1b;
|
|
(GHIDRA_CAST<Menu_Options *>((&this->_menuOptions)))->Menu_Options::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1c;
|
|
(this->_menuControllerSelect).PositionY = 0.0;
|
|
(this->_menuControllerSelect).PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuControllerSelect).ControllerSelectSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd278)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd27c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd280)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1d;
|
|
(this->_menuKeyConfig).PositionY = 0.0;
|
|
(this->_menuKeyConfig).PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuKeyConfig).KeyConfigSprite)))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1e;
|
|
(this->_menuCutscenes).PositionY = 0.0;
|
|
(this->_menuCutscenes).PositionX = 0.0;
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuCutscenes).CutscenesMenuSprite)))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1f;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd4d4)))) = 0;
|
|
this->_menuBestiary = (Menu_Bestiary)0x0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd4d8)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x20;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd5ec)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x21;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd700)))))))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd820)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd824)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd828)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd82c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd830)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd834)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x22;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd854)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd850)))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd858)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x23;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd978)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd974)))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xd97c)))))))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xda94)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x24;
|
|
*GHIDRA_CAST<char **>(&this->_menuOnline) = "gfx/ui/main menu/OnlineMenu.anm2";
|
|
(GHIDRA_CAST<ANM2 *>((&(this->_menuOnline)._anm2)))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x25;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuOnline))) + 0x118)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x26;
|
|
(this->_menuOnline)._prevState = 1;
|
|
(this->_menuOnline)._state = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcd0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdccc)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcd4)))) = 0xffffffff;
|
|
*GHIDRA_CAST<undefined ***>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcd8)))) = KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
KAGE::SmartPointer<LobbyImplBase>::SmartPointer(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcdc))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x27;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcf4)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcf0)))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdcf8)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x28;
|
|
_eh_vector_constructor_iterator_(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xde0c))),0x114,3,ANM2::constructor,ANM2::~ANM2);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x29;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe148)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x2a;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe25c)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x2b;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe370)))) = 0xffffffff;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe374)))) = 0xffffffff;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe378)))) = 0xffffffff;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe37c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe380)))) = 0;
|
|
mapHead = operator_new(0x28);
|
|
*(void **)mapHead = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
|
|
*GHIDRA_CAST<undefined2 *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
|
|
*(void **)&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe37c))) = mapHead;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x2c;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe388)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe38c)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe390))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe394)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe398)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe39c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3a0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3a4)))) = 0;
|
|
*GHIDRA_CAST<undefined2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3a8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3ac)))) = 3;
|
|
*GHIDRA_CAST<undefined2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3b0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3b4)))) = 0x26;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3b8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3bc)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3c0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3c4)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3c8)))) = 0;
|
|
(GHIDRA_CAST<MenuDialog *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe3cc))))))->MenuDialog::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x2d;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe634)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe638)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe63c)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe640)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe644)))) = 0;
|
|
std::list<std::pair<int_int>>::push_back(FUN_008ee4d0,&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdce8))));
|
|
std::list<std::pair<int_int>>::push_back
|
|
(online_lobby_members_changed_callback,&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xdce8))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x2e;
|
|
(GHIDRA_CAST<Menu_LobbyListFilters *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe648))))))->Menu_LobbyListFilters::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x2f;
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xeb50)))))))->Menu_Options::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x30;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xedd8)))))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x31;
|
|
_eh_vector_constructor_iterator_(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xeeec))),0x120,6,FUN_008cb780,FUN_005cc630);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5ac))) = 1;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5b0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5b8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5b4)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5bc))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5c0)))) = 0x3f800000;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5c4)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf5c8)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x32;
|
|
(GHIDRA_CAST<ANM2 *>((&this->_onlineStatsMenuSprite)))->ANM2::constructor();
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6f0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6f8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6f4)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6e0)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6e4)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6e8)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6ec)))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x33;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf6fc)))) = 0;
|
|
viewPositionsLeft = 0x17;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf700)))) = 0xc4a8c000;
|
|
viewPosition = this->_viewPositionSet;
|
|
do {
|
|
viewPosition->y = 0.0;
|
|
viewPosition->x = 0.0;
|
|
viewPositionsLeft = viewPositionsLeft + -1;
|
|
viewPosition = viewPosition + 1;
|
|
} while (viewPositionsLeft != 0);
|
|
(this->_currentColorModState)._amount = 0.0;
|
|
(this->_currentColorModState)._brightness = 0.0;
|
|
(this->_currentColorModState)._red = 1.0;
|
|
(this->_currentColorModState)._green = 1.0;
|
|
(this->_currentColorModState)._blue = 1.0;
|
|
(this->_currentColorModState)._contrast = 1.0;
|
|
(this->_targetColorModState)._amount = 0.0;
|
|
(this->_targetColorModState)._brightness = 0.0;
|
|
(this->_targetColorModState)._red = 1.0;
|
|
(this->_targetColorModState)._green = 1.0;
|
|
(this->_targetColorModState)._blue = 1.0;
|
|
(this->_targetColorModState)._contrast = 1.0;
|
|
(this->_lerpColorModState)._amount = 0.0;
|
|
(this->_lerpColorModState)._brightness = 0.0;
|
|
(this->_lerpColorModState)._red = 1.0;
|
|
(this->_lerpColorModState)._green = 1.0;
|
|
(this->_lerpColorModState)._blue = 1.0;
|
|
(this->_lerpColorModState)._contrast = 1.0;
|
|
this->_scrollinterpolationY = 0.0;
|
|
this->_scrollinterpolationX = 0.0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf814)))) = 0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xf810)))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((&this->_flySprite)))->ANM2::constructor();
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),0x34);
|
|
create_menu_colormod_surface();
|
|
(this->_currentColorModState)._red = 1.0;
|
|
(this->_currentColorModState)._green = 1.0;
|
|
(this->_currentColorModState)._blue = 1.0;
|
|
(this->_currentColorModState)._amount = 0.0;
|
|
this->_shouldLerpColorModState = 0;
|
|
(this->_currentColorModState)._brightness = 0.0;
|
|
(this->_currentColorModState)._contrast = 1.0;
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 00986f30
|
|
MenuManager::~MenuManager()
|
|
{
|
|
ANM2 *this;
|
|
undefined4 *stringSet;
|
|
char isLastRef;
|
|
void *in_ECX;
|
|
undefined4 extraout_ECX;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0d220;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>(((void *)(GHIDRA_INT(in_ECX) + 0x168))))->KAGE::SmartPointer::reset((void *)0x0);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>(((void *)(GHIDRA_INT(in_ECX) + 0x160))))->KAGE::SmartPointer::reset((void *)0x0);
|
|
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX);
|
|
local_8 = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xf818)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xf868)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xf848)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xf830)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xf818)))))->std::string::_Tidy_deallocate();
|
|
local_8 = 1;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xf5cc)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xf61c)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xf5fc)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xf5e4)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xf5cc)))))->std::string::_Tidy_deallocate();
|
|
local_8 = 2;
|
|
_eh_vector_destructor_iterator_((void *)(GHIDRA_INT(in_ECX) + 0xeeec),0x120,6,FUN_005cc630);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),3);
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xedd8)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xee28)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xee08)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xedf0)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xedd8)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>((GHIDRA_INT(in_ECX) + 0xeb50)))))->Menu_Options::~Menu_Options();
|
|
FUN_008dc3c0();
|
|
FUN_008e7630();
|
|
FUN_008e4a20();
|
|
local_8 = 4;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xd97c)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd9cc)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd9ac)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd994)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd97c)))))->std::string::_Tidy_deallocate();
|
|
local_8 = 5;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xd858)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd8a8)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd888)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd870)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd858)))))->std::string::_Tidy_deallocate();
|
|
FUN_008c5d70();
|
|
local_8 = 6;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xd3bc)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd40c)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd3ec)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd3d4)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd3bc)))))->std::string::_Tidy_deallocate();
|
|
this = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xd298));
|
|
local_8 = 7;
|
|
this->ANM2::Reset();
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),8);
|
|
this->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd2e8)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd2c8)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd2b0)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>(this))))->std::string::_Tidy_deallocate();
|
|
FUN_008c9e10();
|
|
local_8 = 9;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0xd164)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd1b4)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0xd194)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd17c)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0xd164)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>((GHIDRA_INT(in_ECX) + 0xcecc)))))->Menu_Options::~Menu_Options();
|
|
(GHIDRA_CAST<Menu_Stats *>((GHIDRA_CAST<Menu_Stats *>((GHIDRA_INT(in_ECX) + 0x2a18)))))->Menu_Stats::~Menu_Stats();
|
|
Menu_Collection::destructor();
|
|
Menu_Challenge::destructor();
|
|
FUN_008f0120();
|
|
(GHIDRA_CAST<Menu_Character *>((GHIDRA_CAST<Menu_Character *>((GHIDRA_INT(in_ECX) + 0x1534)))))->Menu_Character::destructor();
|
|
FUN_008cf510();
|
|
(GHIDRA_CAST<Menu_Game *>((GHIDRA_CAST<Menu_Game *>((GHIDRA_INT(in_ECX) + 0xb90)))))->Menu_Game::destructor();
|
|
(GHIDRA_CAST<Menu_Save *>((GHIDRA_CAST<Menu_Save *>((GHIDRA_INT(in_ECX) + 0x2f4)))))->Menu_Save::~Menu_Save();
|
|
local_8 = 10;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0x1dc)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0x22c)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0x20c)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 500)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0x1dc)))))->std::string::_Tidy_deallocate();
|
|
stringSet = GHIDRA_CAST<undefined4 *>((GHIDRA_INT(in_ECX) + 0x1cc));
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<std::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(stringSet,(fuzzer_allocator<std::_Tree_node<unsigned_int,void*>_> *)stringSet,
|
|
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(in_ECX) + 0x1cc)) + 4));
|
|
operator_delete((void *)*stringSet,0x14);
|
|
local_8 = 0xb;
|
|
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(in_ECX) + 0x174)) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastRef = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(in_ECX) + 0x174)) + 0xc))();
|
|
if ((isLastRef != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(GHIDRA_INT(in_ECX) + 0x170);
|
|
}
|
|
}
|
|
local_8 = 0xc;
|
|
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(in_ECX) + 0x16c)) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastRef = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(in_ECX) + 0x16c)) + 0xc))();
|
|
if ((isLastRef != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)((void *)(GHIDRA_INT(in_ECX) + 0x168));
|
|
}
|
|
}
|
|
local_8 = 0xd;
|
|
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(in_ECX) + 0x164)) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastRef = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(in_ECX) + 0x164)) + 0xc))();
|
|
if ((isLastRef != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(GHIDRA_INT(in_ECX) + 0x160);
|
|
}
|
|
}
|
|
local_8 = 0xe;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(in_ECX) + 0x4c)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0x9c)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(in_ECX) + 0x7c)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 100)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(in_ECX) + 0x4c)))))->std::string::_Tidy_deallocate();
|
|
FID_conflict__Tidy(in_ECX);
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00987450
|
|
void MenuManager::Init()
|
|
{
|
|
MenuManager *titleSprite = this;
|
|
MenuManager *pMVar1;
|
|
char isImageReleasable;
|
|
byte bVar2;
|
|
Seeds *other;
|
|
void *pvVar3;
|
|
byte *animNameChar;
|
|
byte *expectedAnimName;
|
|
undefined4 extraout_ECX;
|
|
char *freeBlock;
|
|
uint uVar4;
|
|
bool isLess;
|
|
float viewOffsetY;
|
|
undefined1 overlayImageRef [4];
|
|
int *piStack_c4;
|
|
Vector aVStack_c0 [11];
|
|
void *tmpSeeds [4];
|
|
void *onlineStatsPath [4];
|
|
uint onlineStatsPathSize;
|
|
uint onlineStatsPathCapacity;
|
|
std_string anm2Path;
|
|
uint stackCookie;
|
|
undefined1 *puStack_20;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
void *pvStack_14;
|
|
byte *animData;
|
|
Manager *manager;
|
|
MenuManager *menuManager2;
|
|
int *overlayImage;
|
|
int selectedMenuId;
|
|
float selectedViewY;
|
|
ANM2 *titleSprite;
|
|
|
|
pMVar1 = g_menuManager;
|
|
puStack_20 = GHIDRA_CAST<undefined1 *>((tmpSeeds + 0x18));
|
|
pvStack_14 = (void *)0xffffffff;
|
|
puStack_18 = &LAB_00b0d316;
|
|
local_1c = ExceptionList;
|
|
stackCookie = __security_cookie ^ GHIDRA_UINT((tmpSeeds + 0x15));
|
|
ExceptionList = &local_1c;
|
|
g_menuManager->_selectedMenuID = 0;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Manager preCrossfade\n"));
|
|
(GHIDRA_CAST<MusicManager *>((&g_manager->_musicManager)))->MusicManager::Crossfade(0x3f,0.08);
|
|
if ((g_manager->_persistentGameData)._characterMenuShown == 1) {
|
|
(GHIDRA_CAST<MusicManager *>((&g_manager->_musicManager)))->MusicManager::EnableLayer(0,1);
|
|
}
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Manager Init\n"));
|
|
(GHIDRA_CAST<PopupButtons *>((&g_manager->_popupButtons)))->PopupButtons::reset(0);
|
|
Seeds::constructor();
|
|
pvStack_14 = (void *)0x0;
|
|
(GHIDRA_CAST<Seeds *>((&pMVar1->_seedsObject)))->Seeds::operator_assign(other);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<std::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(tmpSeeds,(fuzzer_allocator<std::_Tree_node<unsigned_int,void*>_> *)tmpSeeds,
|
|
*(_Tree_node<unsigned_int,void*> **)(GHIDRA_INT(tmpSeeds[0]) + 4));
|
|
operator_delete(tmpSeeds[0],0x14);
|
|
pMVar1->_viewPositionSet[0].x = 0.0;
|
|
pMVar1->_viewPositionSet[0].y = 0.0;
|
|
pMVar1->_viewPositionSet[1].x = 0.0;
|
|
pMVar1->_viewPositionSet[1].y = 0.0;
|
|
pMVar1->_viewPositionSet[2].x = 0.0;
|
|
pMVar1->_viewPositionSet[2].y = -270.0;
|
|
pMVar1->_viewPositionSet[3].x = 0.0;
|
|
pMVar1->_viewPositionSet[3].y = -540.0;
|
|
pMVar1->_viewPositionSet[4].x = -960.0;
|
|
pMVar1->_viewPositionSet[4].y = -810.0;
|
|
pMVar1->_viewPositionSet[5].x = 0.0;
|
|
pMVar1->_viewPositionSet[5].y = -810.0;
|
|
pMVar1->_viewPositionSet[6].x = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xf6fc))));
|
|
pMVar1->_viewPositionSet[6].y = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xf700))));
|
|
selectedMenuId = pMVar1->_selectedMenuID;
|
|
pMVar1->_viewPositionSet[7].x = 480.0;
|
|
pMVar1->_viewPositionSet[7].y = -405.0;
|
|
pMVar1->_viewPositionSet[8].x = 0.0;
|
|
pMVar1->_viewPositionSet[8].y = -1080.0;
|
|
pMVar1->_viewPositionSet[0x10].x = 1440.0;
|
|
pMVar1->_viewPositionSet[0x10].y = -290.0;
|
|
pMVar1->_viewPositionSet[9].x = 480.0;
|
|
pMVar1->_viewPositionSet[9].y = -1350.0;
|
|
pMVar1->_viewPositionSet[10].x = -480.0;
|
|
pMVar1->_viewPositionSet[10].y = -1080.0;
|
|
pMVar1->_viewPositionSet[0xd].x = -480.0;
|
|
pMVar1->_viewPositionSet[0xd].y = -270.0;
|
|
pMVar1->_viewPositionSet[0xb].x = -480.0;
|
|
pMVar1->_viewPositionSet[0xb].y = -1755.0;
|
|
pMVar1->_viewPositionSet[0xc].x = -960.0;
|
|
pMVar1->_viewPositionSet[0xc].y = -1890.0;
|
|
pMVar1->_viewPositionSet[0xe].x = 480.0;
|
|
pMVar1->_viewPositionSet[0xe].y = -1670.0;
|
|
pMVar1->_viewPositionSet[0xf].x = 950.0;
|
|
pMVar1->_viewPositionSet[0xf].y = -290.0;
|
|
pMVar1->_viewPositionSet[0x11].x = -960.0;
|
|
pMVar1->_viewPositionSet[0x11].y = -270.0;
|
|
pMVar1->_viewPositionSet[0x12].x = -960.0;
|
|
pMVar1->_viewPositionSet[0x12].y = -540.0;
|
|
pMVar1->_viewPositionSet[0x13].x = -480.0;
|
|
pMVar1->_viewPositionSet[0x13].y = -540.0;
|
|
pMVar1->_viewPositionSet[0x14].x = -960.0;
|
|
pMVar1->_viewPositionSet[0x14].y = -1350.0;
|
|
pMVar1->_viewPositionSet[0x15].x = -1440.0;
|
|
pMVar1->_viewPositionSet[0x15].y = -540.0;
|
|
pMVar1->_viewPositionSet[0x16].x = 480.0;
|
|
pMVar1->_viewPositionSet[0x16].y = -2160.0;
|
|
viewOffsetY = g_screenHeight - 270.0;
|
|
selectedViewY = pMVar1->_viewPositionSet[selectedMenuId].y;
|
|
(pMVar1->_ViewPosition).x =
|
|
(g_screenWidth - 480.0) * 0.5 + pMVar1->_viewPositionSet[selectedMenuId].x;
|
|
(pMVar1->_ViewPosition).y = viewOffsetY * 0.5 + selectedViewY;
|
|
pvVar3 = Manager::LoadImage(aVStack_c0,GHIDRA_CAST<byte *>("gfx/ui/main menu/EmptyScreen.png"));
|
|
pvStack_14 = (void *)0x1;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x160))))))->KAGE::SmartPointer::operator_assign(pvVar3);
|
|
pvStack_14 = (void *)0x2;
|
|
if (((GHIDRA_CAST<int *>(aVStack_c0[0].y) != GHIDRA_CAST<int *>(0x0)) &&
|
|
(isImageReleasable = (**(code **)(*GHIDRA_CAST<int *>(aVStack_c0[0].y) + 0xc))(), isImageReleasable != '\0'
|
|
)) && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(aVStack_c0);
|
|
}
|
|
pvStack_14 = (void *)0xffffffff;
|
|
pvVar3 = Manager::LoadImage(overlayImageRef,GHIDRA_CAST<byte *>("gfx/ui/main menu/MenuOverlay.png"));
|
|
pvStack_14 = (void *)0x3;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x168))))))->KAGE::SmartPointer::operator_assign(pvVar3);
|
|
pvStack_14 = (void *)0x4;
|
|
if (((piStack_c4 != GHIDRA_CAST<int *>(0x0)) &&
|
|
(isImageReleasable = (**(code **)(*piStack_c4 + 0xc))(), isImageReleasable != '\0')) &&
|
|
(g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(overlayImageRef);
|
|
}
|
|
pvStack_14 = (void *)0xffffffff;
|
|
overlayImage = *GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x168))));
|
|
if ((overlayImage[0xc] != 1) || (overlayImage[0xd] != 1)) {
|
|
(**(code **)(*overlayImage + 0x44))(1,1);
|
|
overlayImage[0xc] = 1;
|
|
overlayImage[0xd] = 1;
|
|
}
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
anm2Path._size = 0x20;
|
|
anm2Path._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/MenuShadow.anm2",0x21);
|
|
pvStack_14 = (void *)0x5;
|
|
(GHIDRA_CAST<ANM2 *>((&pMVar1->_MenuShadowSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar4);
|
|
}
|
|
animData = (pMVar1->_MenuShadowSprite)._animState._animData;
|
|
if (animData == GHIDRA_CAST<byte *>(0x0)) {
|
|
LAB_00987942:
|
|
bVar2 = (GHIDRA_CAST<ANM2 *>((&pMVar1->_MenuShadowSprite)))->ANM2::SetAnimation(s_Idle,1);
|
|
if (bVar2 != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((&(pMVar1->_MenuShadowSprite)._animState)))->AnimationState::Rewind();
|
|
(pMVar1->_MenuShadowSprite)._animState._isPlaying = 1;
|
|
}
|
|
}
|
|
else {
|
|
animNameChar = animData;
|
|
if (0xf < *GHIDRA_CAST<uint *>((animData + 0x14))) {
|
|
animNameChar = *GHIDRA_CAST<byte **>(animData);
|
|
}
|
|
expectedAnimName = s_Idle;
|
|
do {
|
|
bVar2 = *animNameChar;
|
|
isLess = bVar2 < *expectedAnimName;
|
|
if (bVar2 != *expectedAnimName) {
|
|
LAB_00987924:
|
|
uVar4 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00987929;
|
|
}
|
|
if (bVar2 == 0) break;
|
|
bVar2 = animNameChar[1];
|
|
isLess = bVar2 < expectedAnimName[1];
|
|
if (bVar2 != expectedAnimName[1]) goto LAB_00987924;
|
|
animNameChar = animNameChar + 2;
|
|
expectedAnimName = expectedAnimName + 2;
|
|
} while (bVar2 != 0);
|
|
uVar4 = 0;
|
|
LAB_00987929:
|
|
if ((uVar4 != 0) ||
|
|
((animData[0x34] != 0 && ((pMVar1->_MenuShadowSprite)._animState._isPlaying == 0))))
|
|
goto LAB_00987942;
|
|
}
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x20);
|
|
anm2Path._size = 0x19;
|
|
anm2Path._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/fly.anm2",0x1a);
|
|
pvStack_14 = (void *)0x6;
|
|
(GHIDRA_CAST<ANM2 *>((&pMVar1->_flySprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar4);
|
|
}
|
|
animData = (pMVar1->_flySprite)._animState._animData;
|
|
if (animData == GHIDRA_CAST<byte *>(0x0)) {
|
|
LAB_00987a6a:
|
|
bVar2 = (GHIDRA_CAST<ANM2 *>((&pMVar1->_flySprite)))->ANM2::SetAnimation(s_Idle,1);
|
|
if (bVar2 != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((&(pMVar1->_flySprite)._animState)))->AnimationState::Rewind();
|
|
(pMVar1->_flySprite)._animState._isPlaying = 1;
|
|
}
|
|
}
|
|
else {
|
|
animNameChar = animData;
|
|
if (0xf < *GHIDRA_CAST<uint *>((animData + 0x14))) {
|
|
animNameChar = *GHIDRA_CAST<byte **>(animData);
|
|
}
|
|
expectedAnimName = s_Idle;
|
|
do {
|
|
bVar2 = *animNameChar;
|
|
isLess = bVar2 < *expectedAnimName;
|
|
if (bVar2 != *expectedAnimName) {
|
|
LAB_00987a46:
|
|
uVar4 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00987a4b;
|
|
}
|
|
if (bVar2 == 0) break;
|
|
bVar2 = animNameChar[1];
|
|
isLess = bVar2 < expectedAnimName[1];
|
|
if (bVar2 != expectedAnimName[1]) goto LAB_00987a46;
|
|
animNameChar = animNameChar + 2;
|
|
expectedAnimName = expectedAnimName + 2;
|
|
} while (bVar2 != 0);
|
|
uVar4 = 0;
|
|
LAB_00987a4b:
|
|
if ((uVar4 != 0) || ((animData[0x34] != 0 && ((pMVar1->_flySprite)._animState._isPlaying == 0)))
|
|
) goto LAB_00987a6a;
|
|
}
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Title Init\n"));
|
|
titleSprite = &(pMVar1->_menuTitle).TitleScreenSprite;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[1].x);
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[1].y;
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x20);
|
|
anm2Path._size = 0x1f;
|
|
anm2Path._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/TitleMenu.anm2",0x20);
|
|
pvStack_14 = (void *)0x7;
|
|
(GHIDRA_CAST<ANM2 *>((titleSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar4);
|
|
}
|
|
animData = (pMVar1->_menuTitle).TitleScreenSprite._animState._animData;
|
|
if (animData != GHIDRA_CAST<byte *>(0x0)) {
|
|
animNameChar = animData;
|
|
if (0xf < *GHIDRA_CAST<uint *>((animData + 0x14))) {
|
|
animNameChar = *GHIDRA_CAST<byte **>(animData);
|
|
}
|
|
expectedAnimName = s_Idle;
|
|
do {
|
|
bVar2 = *animNameChar;
|
|
isLess = bVar2 < *expectedAnimName;
|
|
if (bVar2 != *expectedAnimName) {
|
|
LAB_00987bc4:
|
|
uVar4 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00987bc9;
|
|
}
|
|
if (bVar2 == 0) break;
|
|
bVar2 = animNameChar[1];
|
|
isLess = bVar2 < expectedAnimName[1];
|
|
if (bVar2 != expectedAnimName[1]) goto LAB_00987bc4;
|
|
animNameChar = animNameChar + 2;
|
|
expectedAnimName = expectedAnimName + 2;
|
|
} while (bVar2 != 0);
|
|
uVar4 = 0;
|
|
LAB_00987bc9:
|
|
if ((uVar4 == 0) &&
|
|
((animData[0x34] == 0 || ((pMVar1->_menuTitle).TitleScreenSprite._animState._isPlaying != 0))
|
|
)) goto LAB_00987c03;
|
|
}
|
|
bVar2 = (GHIDRA_CAST<ANM2 *>((titleSprite)))->ANM2::SetAnimation(s_Idle,1);
|
|
if (bVar2 != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((&(pMVar1->_menuTitle).TitleScreenSprite._animState)))->AnimationState::Rewind();
|
|
(pMVar1->_menuTitle).TitleScreenSprite._animState._isPlaying = 1;
|
|
}
|
|
LAB_00987c03:
|
|
FUN_009ef5c0();
|
|
(pMVar1->_menuTitle).PositionX = (float)piStack_c4;
|
|
(pMVar1->_menuTitle).PositionY = aVStack_c0[0].y;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Save Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[2].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[2].y;
|
|
func_0x009d8ee0(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Game Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[3].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[3].y;
|
|
func_0x00980c20(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Daily Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[4].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[4].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
anm2Path._size = 0x23;
|
|
anm2Path._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/Menu_DailyRun.anm2",0x24);
|
|
pvStack_14 = (void *)0x8;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xde8)))))))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar4);
|
|
}
|
|
(GHIDRA_CAST<ScoreSheet *>((GHIDRA_CAST<ScoreSheet *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x1178)))))))->ScoreSheet::LoadAnm2();
|
|
FUN_008370f0();
|
|
FUN_00837740(extraout_ECX);
|
|
(GHIDRA_CAST<GenericPrompt *>((GHIDRA_CAST<GenericPrompt *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x1044)))))))->GenericPrompt::Initialize(0);
|
|
FUN_008d0730();
|
|
manager = g_manager;
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xde0)))) = aVStack_c0[0].y;
|
|
*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xde4)))) = piStack_c4;
|
|
uVar4 = (manager->_persistentGameData)._eventCounters[0xc0];
|
|
if (GHIDRA_UINT((manager->_persistentGameData)._eventCounters[0x209]) < uVar4) {
|
|
(manager->_persistentGameData)._eventCounters[0x209] = uVar4;
|
|
}
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Character Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[5].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[5].y;
|
|
func_0x00947470(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu SpecialSeed Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[6].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[6].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x20);
|
|
anm2Path._size = 0x1f;
|
|
anm2Path._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/SeedsMenu.anm2",0x20);
|
|
pvStack_14 = (void *)0x9;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuSpecialSeeds).SpecialSeedsSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar4);
|
|
}
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((pMVar1->_menuSpecialSeeds))) + 0x14)))) = aVStack_c0[0].y;
|
|
*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((pMVar1->_menuSpecialSeeds))) + 0x18)))) = piStack_c4;
|
|
(GHIDRA_CAST<Menu_SpecialSeeds *>((&pMVar1->_menuSpecialSeeds)))->Menu_SpecialSeeds::Reset();
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Challenge Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[7].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[7].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
anm2Path._size = 0x23;
|
|
anm2Path._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/ChallengeMenu.anm2",0x24);
|
|
pvStack_14 = (void *)0xa;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuChallenge).ChallengeMenuSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar4);
|
|
}
|
|
(pMVar1->_menuChallenge).PositionX = aVStack_c0[0].y;
|
|
(pMVar1->_menuChallenge).PositionY = (float)piStack_c4;
|
|
*GHIDRA_CAST<undefined4 *>(&pMVar1->_menuChallenge) = 0;
|
|
(GHIDRA_CAST<Menu_Challenge *>((&pMVar1->_menuChallenge)))->Menu_Challenge::reset();
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Collection Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[8].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[8].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/CollectionMenu.anm2"),0x24);
|
|
pvStack_14 = (void *)0xb;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuCollection).CollectionMenuSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/Death Screen.anm2"),0x18);
|
|
pvStack_14 = (void *)0xc;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuCollection).DeathScreenSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
Menu_Collection::reset();
|
|
(pMVar1->_menuCollection).PositionX = aVStack_c0[0].y;
|
|
(pMVar1->_menuCollection).PositionY = (float)piStack_c4;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Stats Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[9].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[9].y;
|
|
func_0x009ec2b0(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Mods Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0x10].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[0x10].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/ModsMenu.anm2"),0x1e);
|
|
pvStack_14 = (void *)0xd;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xd97c)))))))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xd974)))) = aVStack_c0[0].y;
|
|
*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xd978)))) = piStack_c4;
|
|
(GHIDRA_CAST<Menu_Mods *>((&pMVar1->_menuMods)))->Menu_Mods::reset();
|
|
*GHIDRA_CAST<ModManager *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xda94)))) = g_manager->_modManager;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Options Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[10].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[10].y;
|
|
(GHIDRA_CAST<Menu_Options *>((&pMVar1->_menuOptions)))->Menu_Options::Init(aVStack_c0,0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Controller Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0xb].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[0xb].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/ControllerSelectMenu.anm2"),0x2a);
|
|
pvStack_14 = (void *)0xe;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuControllerSelect).ControllerSelectSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuControllerSelect).ControllerSelectSprite)))->ANM2::Play(s_Idle,0);
|
|
FUN_008c9dd0();
|
|
(pMVar1->_menuControllerSelect).PositionX = aVStack_c0[0].y;
|
|
(pMVar1->_menuControllerSelect).PositionY = (float)piStack_c4;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Key Config Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0xc].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[0xc].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/KeyConfigMenu.anm2"),0x23);
|
|
pvStack_14 = (void *)0xf;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuKeyConfig).KeyConfigSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuKeyConfig).KeyConfigSprite)))->ANM2::Play(s_Idle,0);
|
|
menuManager2 = g_menuManager;
|
|
(pMVar1->_menuKeyConfig).PositionX = aVStack_c0[0].y;
|
|
(pMVar1->_menuKeyConfig).PositionY = (float)piStack_c4;
|
|
(pMVar1->_menuKeyConfig).SelectedElement = 0;
|
|
(pMVar1->_menuKeyConfig).SelectedColumn = 0;
|
|
*GHIDRA_CAST<undefined1 *>(&(pMVar1->_menuKeyConfig).State) = 0;
|
|
menuManager2->_viewPositionSet[0xc].y = -1890.0;
|
|
menuManager2->_state = 1;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Cutscene Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0xd].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[0xd].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/EndingsMenu.anm2"),0x21);
|
|
pvStack_14 = (void *)0x10;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuCutscenes).CutscenesMenuSprite)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
FUN_008cf480();
|
|
(pMVar1->_menuCutscenes).PositionX = aVStack_c0[0].y;
|
|
(pMVar1->_menuCutscenes).PositionY = (float)piStack_c4;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Bestiary Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[0xe].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0xe].y;
|
|
func_0x008c5e70(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Custom Challenge Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0xf].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[0xf].y);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/ChallengeMenuCustom.anm2"),0x29);
|
|
pvStack_14 = (void *)0x11;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xd858)))))))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xd850)))) = aVStack_c0[0].y;
|
|
*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xd854)))) = piStack_c4;
|
|
(GHIDRA_CAST<Menu_ModChallenges *>((&pMVar1->_menuCustomChallenge)))->Menu_ModChallenges::reset();
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Online Lobby Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[0x11].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0x11].y;
|
|
func_0x008e77a0(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Friend Lobbies Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[0x12].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0x12].y;
|
|
func_0x008dc510(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Multiplayer Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0x13].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[0x13].y);
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::string_from_cstr(*GHIDRA_CAST<byte **>(&pMVar1->_menuOnline));
|
|
pvStack_14 = (void *)0x12;
|
|
(GHIDRA_CAST<ANM2 *>((&(pMVar1->_menuOnline)._anm2)))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::_Tidy_deallocate();
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/OnlineMenuSketches.anm2"),0x28);
|
|
pvStack_14 = (void *)0x13;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((pMVar1->_menuOnline))) + 0x118)))))))->ANM2::Load(&anm2Path,1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar4 = anm2Path._capacity + 1;
|
|
pvVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar4 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
(GHIDRA_CAST<Menu_Online *>((&pMVar1->_menuOnline)))->Menu_Online::enter();
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xdccc)))) = aVStack_c0[0].y;
|
|
*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xdcd0)))) = piStack_c4;
|
|
(pMVar1->_menuOnline)._prevState = 1;
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Options Online Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[0x14].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0x14].y;
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xeb50)))))))->Menu_Options::Init(aVStack_c0,3);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Create Lobby Init\n"));
|
|
aVStack_c0[0].x = -pMVar1->_viewPositionSet[0x15].x;
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0x15].y;
|
|
func_0x008cb820(aVStack_c0);
|
|
KAGE_LogMessage(1,GHIDRA_CAST<byte *>("Menu Online Awards Init\n"));
|
|
aVStack_c0[0].y = -pMVar1->_viewPositionSet[0x16].x;
|
|
piStack_c4 = GHIDRA_CAST<int *>(-pMVar1->_viewPositionSet[0x16].y);
|
|
onlineStatsPathSize = 0;
|
|
onlineStatsPathCapacity = 0xf;
|
|
onlineStatsPath[0] = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>(onlineStatsPath))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/OnlineStatsMenu.anm2"),0x25);
|
|
pvStack_14 = (void *)0x14;
|
|
(GHIDRA_CAST<ANM2 *>((&pMVar1->_onlineStatsMenuSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(onlineStatsPath),1);
|
|
pvStack_14 = (void *)0xffffffff;
|
|
if (0xf < onlineStatsPathCapacity) {
|
|
uVar4 = onlineStatsPathCapacity + 1;
|
|
pvVar3 = onlineStatsPath[0];
|
|
if (0xfff < uVar4) {
|
|
pvVar3 = *(void **)(GHIDRA_INT(onlineStatsPath[0]) + -4);
|
|
uVar4 = onlineStatsPathCapacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(onlineStatsPath[0]) + (-4 - GHIDRA_INT(pvVar3))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar3,uVar4);
|
|
}
|
|
onlineStatsPathSize = 0;
|
|
onlineStatsPathCapacity = 0xf;
|
|
onlineStatsPath[0] = (void *)(GHIDRA_UINT(onlineStatsPath[0]) & 0xffffff00);
|
|
FUN_008e71c0();
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xf6f4)))) = aVStack_c0[0].y;
|
|
*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0xf6f8)))) = piStack_c4;
|
|
pMVar1->_state = 0;
|
|
pMVar1->_fadeOutActive = 0;
|
|
pMVar1->_fadeOutProgress = 0.0;
|
|
pMVar1->_fadeInActive = 0;
|
|
pMVar1->_fadeInProgress = 1.0;
|
|
pMVar1->_vingnetteIntensity = 0.0;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x38)))) = 0x42b40000;
|
|
*GHIDRA_CAST<undefined4 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x3c)))) = 0x42b40000;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((pMVar1)) + 0x30))) = 1;
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 00988ba0
|
|
void MenuManager::unload_graphics()
|
|
{
|
|
MenuManager *temp_3fc91b172b;
|
|
|
|
temp_3fc91b172b = g_menuManager;
|
|
(GHIDRA_CAST<ANM2 *>((&(g_menuManager->_menuTitle).TitleScreenSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<Menu_Save *>((&temp_3fc91b172b->_menuSave)))->Menu_Save::unload_graphics();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuGame).GameMenuSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuGame).ContinueWidgetSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._BigCharPageSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._CharacterMenuBGSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._DifficultyOverlaySprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._GreedDecoOverlaySprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._CharacterPortraitsSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._SeedEntrySprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._DifficultyPageSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._SeedPageSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._WinStreakPageSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._EastereggPageSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._SeedUnlockPageSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._PageSwapWidgetSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCharacter)._TaintedMenuBGDecoSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuSpecialSeeds).SpecialSeedsSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuChallenge).ChallengeMenuSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCollection).CollectionMenuSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCollection).DeathScreenSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<Menu_Stats *>((&temp_3fc91b172b->_menuStats)))->Menu_Stats::unload_graphics();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuOptions).OptionsSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuControllerSelect).ControllerSelectSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuKeyConfig).KeyConfigSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuCutscenes).CutscenesMenuSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xde8)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xf10)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0x1044)))))))->ANM2::Reset();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0x1174))) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xd4d8)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xd5ec)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xd700)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xd858)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xd97c)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<Menu_OnlineLobby *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xdce8))))))->Menu_OnlineLobby::unload_graphics();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xe650)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xe9d4)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fc91b172b->_menuOnline)._anm2)))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xeb74)))))))->ANM2::Reset();
|
|
(GHIDRA_CAST<Menu_CreateLobby *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fc91b172b)) + 0xedd8))))))->Menu_CreateLobby::unload_graphics();
|
|
(GHIDRA_CAST<ANM2 *>((&temp_3fc91b172b->_onlineStatsMenuSprite)))->ANM2::Reset();
|
|
return;
|
|
}
|
|
|
|
// 00988d80
|
|
void MenuManager::LoadGraphics()
|
|
{
|
|
byte *pbVar1;
|
|
byte bVar2;
|
|
byte *strCursor;
|
|
byte *expectedName;
|
|
char *freeBlock;
|
|
void *freeBuf;
|
|
uint uVar3;
|
|
bool isLess;
|
|
std_string statsMenuAnm2Path;
|
|
std_string anm2Path;
|
|
uint stackCookie;
|
|
void **ppvStack_20;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
undefined4 local_14;
|
|
MenuManager *temp_3fd96d67c4;
|
|
ANM2 *titleSprite;
|
|
|
|
temp_3fd96d67c4 = g_menuManager;
|
|
ppvStack_20 = (void **)(GHIDRA_INT(&statsMenuAnm2Path) + 0x50);
|
|
local_14 = 0xffffffff;
|
|
puStack_18 = &LAB_00b0d3a5;
|
|
local_1c = ExceptionList;
|
|
stackCookie = __security_cookie ^ GHIDRA_INT(&statsMenuAnm2Path) + 0x44U;
|
|
ExceptionList = &local_1c;
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
titleSprite = &(g_menuManager->_menuTitle).TitleScreenSprite;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x20);
|
|
anm2Path._size = 0x1f;
|
|
anm2Path._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/TitleMenu.anm2",0x20);
|
|
local_14 = 0;
|
|
(GHIDRA_CAST<ANM2 *>((titleSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar3);
|
|
}
|
|
pbVar1 = (temp_3fd96d67c4->_menuTitle).TitleScreenSprite._animState._animData;
|
|
if (pbVar1 == GHIDRA_CAST<byte *>(0x0)) {
|
|
LAB_00988edb:
|
|
bVar2 = (GHIDRA_CAST<ANM2 *>((titleSprite)))->ANM2::SetAnimation(s_Idle,1);
|
|
if (bVar2 != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((&(temp_3fd96d67c4->_menuTitle).TitleScreenSprite._animState)))->AnimationState::Rewind();
|
|
(temp_3fd96d67c4->_menuTitle).TitleScreenSprite._animState._isPlaying = 1;
|
|
}
|
|
}
|
|
else {
|
|
strCursor = pbVar1;
|
|
if (0xf < *GHIDRA_CAST<uint *>((pbVar1 + 0x14))) {
|
|
strCursor = *GHIDRA_CAST<byte **>(pbVar1);
|
|
}
|
|
expectedName = s_Idle;
|
|
do {
|
|
bVar2 = *strCursor;
|
|
isLess = bVar2 < *expectedName;
|
|
if (bVar2 != *expectedName) {
|
|
LAB_00988ec0:
|
|
uVar3 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00988ec5;
|
|
}
|
|
if (bVar2 == 0) break;
|
|
bVar2 = strCursor[1];
|
|
isLess = bVar2 < expectedName[1];
|
|
if (bVar2 != expectedName[1]) goto LAB_00988ec0;
|
|
strCursor = strCursor + 2;
|
|
expectedName = expectedName + 2;
|
|
} while (bVar2 != 0);
|
|
uVar3 = 0;
|
|
LAB_00988ec5:
|
|
if ((uVar3 != 0) ||
|
|
((pbVar1[0x34] != 0 &&
|
|
((temp_3fd96d67c4->_menuTitle).TitleScreenSprite._animState._isPlaying == 0))))
|
|
goto LAB_00988edb;
|
|
}
|
|
(GHIDRA_CAST<Menu_Title *>((&temp_3fd96d67c4->_menuTitle)))->Menu_Title::load_graphics();
|
|
Menu_Save::LoadGraphics();
|
|
Menu_Game::LoadGraphics();
|
|
(GHIDRA_CAST<Menu_Character *>((&temp_3fd96d67c4->_menuCharacter)))->Menu_Character::LoadGraphics();
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x20);
|
|
anm2Path._size = 0x1f;
|
|
anm2Path._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/SeedsMenu.anm2",0x20);
|
|
local_14 = 1;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuSpecialSeeds).SpecialSeedsSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar3);
|
|
}
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
anm2Path._size = 0x23;
|
|
anm2Path._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/ChallengeMenu.anm2",0x24);
|
|
local_14 = 2;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuChallenge).ChallengeMenuSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar3);
|
|
}
|
|
(GHIDRA_CAST<Menu_Challenge *>((&temp_3fd96d67c4->_menuChallenge)))->Menu_Challenge::reset();
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
anm2Path._size = 0x24;
|
|
anm2Path._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/CollectionMenu.anm2",0x25);
|
|
local_14 = 3;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuCollection).CollectionMenuSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar3);
|
|
}
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x20);
|
|
anm2Path._size = 0x18;
|
|
anm2Path._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/Death Screen.anm2",0x19);
|
|
local_14 = 4;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuCollection).DeathScreenSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar3);
|
|
}
|
|
Menu_Collection::reset();
|
|
(GHIDRA_CAST<Menu_Stats *>((&temp_3fd96d67c4->_menuStats)))->Menu_Stats::LoadGraphics();
|
|
(GHIDRA_CAST<Menu_Options *>((&temp_3fd96d67c4->_menuOptions)))->Menu_Options::load_menu_anm2();
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
anm2Path._size = 0x2a;
|
|
anm2Path._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/ControllerSelectMenu.anm2",0x2b);
|
|
local_14 = 5;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuControllerSelect).ControllerSelectSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar3);
|
|
}
|
|
pbVar1 = (temp_3fd96d67c4->_menuControllerSelect).ControllerSelectSprite._animState._animData;
|
|
if (pbVar1 != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = pbVar1;
|
|
if (0xf < *GHIDRA_CAST<uint *>((pbVar1 + 0x14))) {
|
|
strCursor = *GHIDRA_CAST<byte **>(pbVar1);
|
|
}
|
|
expectedName = s_Idle;
|
|
do {
|
|
bVar2 = *strCursor;
|
|
isLess = bVar2 < *expectedName;
|
|
if (bVar2 != *expectedName) {
|
|
LAB_00989310:
|
|
uVar3 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00989315;
|
|
}
|
|
if (bVar2 == 0) break;
|
|
bVar2 = strCursor[1];
|
|
isLess = bVar2 < expectedName[1];
|
|
if (bVar2 != expectedName[1]) goto LAB_00989310;
|
|
strCursor = strCursor + 2;
|
|
expectedName = expectedName + 2;
|
|
} while (bVar2 != 0);
|
|
uVar3 = 0;
|
|
LAB_00989315:
|
|
if ((uVar3 == 0) &&
|
|
((pbVar1[0x34] == 0 ||
|
|
((temp_3fd96d67c4->_menuControllerSelect).ControllerSelectSprite._animState._isPlaying != 0)
|
|
))) goto LAB_00989352;
|
|
}
|
|
bVar2 = (GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuControllerSelect).ControllerSelectSprite)))->ANM2::SetAnimation(s_Idle
|
|
,1);
|
|
if (bVar2 != 0) {
|
|
AnimationState::Rewind
|
|
(&(temp_3fd96d67c4->_menuControllerSelect).ControllerSelectSprite._animState);
|
|
(temp_3fd96d67c4->_menuControllerSelect).ControllerSelectSprite._animState._isPlaying = 1;
|
|
}
|
|
LAB_00989352:
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
anm2Path._buf[0] = '\0';
|
|
anm2Path._buf[1] = '\0';
|
|
anm2Path._buf[2] = '\0';
|
|
anm2Path._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
anm2Path._size = 0x23;
|
|
anm2Path._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/main menu/KeyConfigMenu.anm2",0x24);
|
|
local_14 = 6;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuKeyConfig).KeyConfigSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4));
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar3);
|
|
}
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/EndingsMenu.anm2"),0x21);
|
|
local_14 = 7;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuCutscenes).CutscenesMenuSprite)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBuf = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBuf = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBuf))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBuf,uVar3);
|
|
}
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuCutscenes).CutscenesMenuSprite)))->ANM2::Play(s_Idle,0);
|
|
(GHIDRA_CAST<Menu_DailyChallenge *>((&temp_3fd96d67c4->_menuDailyChallenge)))->Menu_DailyChallenge::load_graphics();
|
|
(GHIDRA_CAST<Menu_Bestiary *>((&temp_3fd96d67c4->_menuBestiary)))->Menu_Bestiary::load_graphics();
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/ChallengeMenuCustom.anm2"),0x29);
|
|
local_14 = 8;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fd96d67c4)) + 0xd858)))))))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBuf = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBuf = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBuf))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBuf,uVar3);
|
|
}
|
|
(GHIDRA_CAST<Menu_ModChallenges *>((&temp_3fd96d67c4->_menuCustomChallenge)))->Menu_ModChallenges::reset();
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/ModsMenu.anm2"),0x1e);
|
|
local_14 = 9;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fd96d67c4)) + 0xd97c)))))))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBuf = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBuf = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBuf))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBuf,uVar3);
|
|
}
|
|
(GHIDRA_CAST<Menu_Mods *>((&temp_3fd96d67c4->_menuMods)))->Menu_Mods::reset();
|
|
Menu_OnlineLobby::load_graphics();
|
|
(GHIDRA_CAST<Menu_OnlineLobbyList *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fd96d67c4)) + 0xe648))))))->Menu_OnlineLobbyList::load_graphics();
|
|
pbVar1 = *GHIDRA_CAST<byte **>(&temp_3fd96d67c4->_menuOnline);
|
|
anm2Path._size = 0;
|
|
anm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
strCursor = pbVar1;
|
|
do {
|
|
bVar2 = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (bVar2 != 0);
|
|
(GHIDRA_CAST<std::string *>((anm2Path._buf)))->std::string::assign(pbVar1,GHIDRA_INT(strCursor) - GHIDRA_INT((pbVar1 + 1)));
|
|
local_14 = 10;
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuOnline)._anm2)))->ANM2::Load(&anm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < anm2Path._capacity) {
|
|
uVar3 = anm2Path._capacity + 1;
|
|
freeBuf = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)anm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBuf = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + -4);
|
|
uVar3 = anm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(anm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBuf))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBuf,uVar3);
|
|
}
|
|
(GHIDRA_CAST<ANM2 *>((&(temp_3fd96d67c4->_menuOnline)._anm2)))->ANM2::Play(s_Idle,0);
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fd96d67c4)) + 0xeb50)))))))->Menu_Options::load_menu_anm2();
|
|
Menu_CreateLobby::load_graphics(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((temp_3fd96d67c4)) + 0xedd8)))));
|
|
statsMenuAnm2Path._size = 0;
|
|
statsMenuAnm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(statsMenuAnm2Path._buf)) + 0x0))) = (void *)0x0;
|
|
(GHIDRA_CAST<std::string *>((statsMenuAnm2Path._buf)))->std::string::assign(GHIDRA_CAST<byte *>("gfx/ui/main menu/OnlineStatsMenu.anm2"),0x25);
|
|
local_14 = 0xb;
|
|
(GHIDRA_CAST<ANM2 *>((&temp_3fd96d67c4->_onlineStatsMenuSprite)))->ANM2::Load(&statsMenuAnm2Path,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < statsMenuAnm2Path._capacity) {
|
|
uVar3 = statsMenuAnm2Path._capacity + 1;
|
|
freeBuf = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)statsMenuAnm2Path._buf)) + 0x0)));
|
|
if (0xfff < uVar3) {
|
|
freeBuf = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(statsMenuAnm2Path._buf)) + 0x0))) + -4);
|
|
uVar3 = statsMenuAnm2Path._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(statsMenuAnm2Path._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBuf))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBuf,uVar3);
|
|
}
|
|
statsMenuAnm2Path._size = 0;
|
|
statsMenuAnm2Path._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(statsMenuAnm2Path._buf)) + 0x0))) = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(statsMenuAnm2Path._buf)) + 0x0))) & 0xffffff00;
|
|
(GHIDRA_CAST<ANM2 *>((&temp_3fd96d67c4->_onlineStatsMenuSprite)))->ANM2::Play(s_Idle,0);
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 00989750
|
|
void MenuManager::start_game(KColor fadeColor)
|
|
{
|
|
int iVar1;
|
|
MenuManager *menuManager;
|
|
|
|
menuManager = g_menuManager;
|
|
(g_menuManager->_fadeInColor)._red = fadeColor._red;
|
|
(menuManager->_fadeInColor)._green = fadeColor._green;
|
|
(menuManager->_fadeInColor)._blue = fadeColor._blue;
|
|
(menuManager->_fadeInColor)._alpha = fadeColor._alpha;
|
|
(menuManager->_fadeInColor)._unk = fadeColor._unk;
|
|
menuManager->_fadeOutActive = 1;
|
|
input_poll_active_device();
|
|
iVar1 = 0x5f;
|
|
if ((g_manager->_persistentGameData)._characterMenuShown == 1) {
|
|
iVar1 = 0x40;
|
|
}
|
|
(GHIDRA_CAST<MusicManager *>((&g_manager->_musicManager)))->MusicManager::Crossfade(iVar1,0.08);
|
|
iVar1 = (menuManager->_seedsObject)._gameStartSeed;
|
|
if (iVar1 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("Error: Game Start Seed was not set.\n"));
|
|
iVar1 = (menuManager->_seedsObject)._gameStartSeed;
|
|
}
|
|
loading_images_load(iVar1);
|
|
return;
|
|
}
|
|
|
|
// 009897d0
|
|
void MenuManager::Update()
|
|
{
|
|
undefined1 *puVar1;
|
|
byte isDeviceConnected;
|
|
char cVar2;
|
|
LayerState *pLVar3;
|
|
float *step;
|
|
int unused;
|
|
float *extraout_ECX;
|
|
int iVar4;
|
|
uint index;
|
|
MenuManager *menu;
|
|
float fVar5;
|
|
float fVar6;
|
|
float dirY;
|
|
undefined1 exitPopup [84];
|
|
undefined1 local_94 [12];
|
|
undefined1 local_88 [12];
|
|
undefined4 local_7c;
|
|
undefined4 local_78;
|
|
undefined4 local_74;
|
|
undefined4 local_70;
|
|
undefined4 local_6c;
|
|
undefined4 local_68;
|
|
int *device;
|
|
float local_38;
|
|
float local_34;
|
|
MenuManager *local_30;
|
|
Vector local_2c;
|
|
float local_24;
|
|
undefined1 *puStack_20;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
undefined4 local_14;
|
|
Manager *manager;
|
|
|
|
menu = g_menuManager;
|
|
puStack_20 = local_88 + 0x84;
|
|
local_14 = 0xffffffff;
|
|
puStack_18 = &LAB_00b0d3f0;
|
|
local_1c = ExceptionList;
|
|
ExceptionList = &local_1c;
|
|
local_30 = g_menuManager;
|
|
puVar1 = local_88 + 0x84;
|
|
if ((g_menuManager->_MenuShadowSprite)._loaded != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((&(g_menuManager->_MenuShadowSprite)._animState)))->AnimationState::Update();
|
|
(GHIDRA_CAST<AnimationState *>((&(menu->_MenuShadowSprite)._overlayAnimState)))->AnimationState::Update();
|
|
puVar1 = puStack_20;
|
|
}
|
|
puStack_20 = puVar1;
|
|
fVar6 = (menu->_viewPositionSet[1].x + (g_screenWidth - 480.0) * 0.5) - (menu->_ViewPosition).x;
|
|
fVar5 = (menu->_viewPositionSet[1].y + (g_screenHeight - 270.0) * 0.5) - (menu->_ViewPosition).y;
|
|
fVar6 = sqrtf(fVar5 * fVar5 + fVar6 * fVar6);
|
|
manager = g_manager;
|
|
fVar5 = menu->_viewPositionSet[1].x;
|
|
menu->_scrollinterpolationY = fVar6 * 0.004 + 176.0 + menu->_viewPositionSet[1].y;
|
|
menu->_scrollinterpolationX = fVar6 * 0.004 * fVar6 + 364.0 + fVar5;
|
|
local_24 = sin(((float)(manager->_framecount % 0x50) * 6.2831855) / 80.0);
|
|
local_24 = local_24 + 8.0;
|
|
local_38 = -local_24;
|
|
pLVar3 = (GHIDRA_CAST<ANM2 *>((&menu->_flySprite)))->ANM2::GetLayer(GHIDRA_CAST<byte *>(0x0));
|
|
(pLVar3->_pos).y = local_38;
|
|
local_24 = local_24 * 0.4;
|
|
pLVar3 = (GHIDRA_CAST<ANM2 *>((&menu->_flySprite)))->ANM2::GetLayer(GHIDRA_CAST<byte *>(0x1));
|
|
(pLVar3->_pos).x = local_24;
|
|
(pLVar3->_pos).y = local_24;
|
|
if ((menu->_flySprite)._loaded != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((&(menu->_flySprite)._animState)))->AnimationState::Update();
|
|
(GHIDRA_CAST<AnimationState *>((&(menu->_flySprite)._overlayAnimState)))->AnimationState::Update();
|
|
}
|
|
iVar4 = menu->_selectedMenuID;
|
|
if (menu->_state == 0) {
|
|
fVar6 = g_screenHeight - 270.0;
|
|
fVar5 = menu->_viewPositionSet[iVar4].y;
|
|
(menu->_ViewPosition).x = (g_screenWidth - 480.0) * 0.5 + menu->_viewPositionSet[iVar4].x;
|
|
(menu->_ViewPosition).y = fVar6 * 0.5 + fVar5;
|
|
}
|
|
else {
|
|
local_38 = (g_screenWidth - 480.0) * 0.5 + menu->_viewPositionSet[iVar4].x;
|
|
local_2c.y = (g_screenHeight - 270.0) * 0.5 + menu->_viewPositionSet[iVar4].y;
|
|
local_24 = local_38 - (menu->_ViewPosition).x;
|
|
local_34 = local_2c.y - (menu->_ViewPosition).y;
|
|
fVar5 = sqrtf(local_24 * local_24 + local_34 * local_34);
|
|
if (1.0 < fVar5) {
|
|
fVar6 = local_24;
|
|
dirY = local_34;
|
|
if (0.0 < fVar5) {
|
|
fVar6 = local_24 * (1.0 / fVar5);
|
|
dirY = local_34 * (1.0 / fVar5);
|
|
}
|
|
local_2c.y = 1.0;
|
|
local_38 = fVar5 * 0.1;
|
|
step = &local_2c.y;
|
|
if (1.0 <= fVar5 * 0.1) {
|
|
step = &local_38;
|
|
}
|
|
fVar5 = *step;
|
|
(menu->_ViewPosition).y = fVar5 * dirY + (menu->_ViewPosition).y;
|
|
(menu->_ViewPosition).x = fVar5 * fVar6 + (menu->_ViewPosition).x;
|
|
}
|
|
else {
|
|
(menu->_ViewPosition).x = local_38;
|
|
(menu->_ViewPosition).y = local_2c.y;
|
|
menu->_state = 0;
|
|
}
|
|
}
|
|
if (((((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menu)) + 0x30))) != '\0') && (1 < menu->_selectedMenuID)) &&
|
|
(isDeviceConnected =
|
|
(GHIDRA_CAST<InputManager *>((&PTR_vftable_00c57b18)))->InputManager::is_device_connected(g_menuControllerIndex),
|
|
isDeviceConnected != 0)) && ((menu->_state == 0 || (2 < menu->_selectedMenuID)))) {
|
|
(GHIDRA_CAST<InputManager *>((&PTR_vftable_00c57b18)))->InputManager::get_device(&device,g_menuControllerIndex);
|
|
local_14 = 0;
|
|
if ((device != GHIDRA_CAST<int *>(0x0)) && (cVar2 = (**(code **)(*device + 0x1c))(), cVar2 != '\0')) {
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menu)) + 0x30))) = 0;
|
|
}
|
|
local_14 = 0xffffffff;
|
|
FUN_004242b0();
|
|
}
|
|
if (menu->_selectedMenuID != 0xc) {
|
|
index = 0;
|
|
while( true ) {
|
|
(**(code **)(PTR_vftable_00c57b2c + 0xc))(0xffffffff);
|
|
iVar4 = DAT_00c57b24 - _DAT_00c57b20;
|
|
local_14 = 1;
|
|
(**(code **)(PTR_vftable_00c57b2c + 0x10))();
|
|
local_14 = 0xffffffff;
|
|
if (GHIDRA_UINT((iVar4 >> 3)) <= index) break;
|
|
(GHIDRA_CAST<KAGE::Input::Manager *>((GHIDRA_CAST<Manager *>(&PTR_vftable_00c57b18))))->KAGE::Input::Manager::get_device(&local_2c,index);
|
|
local_14 = 2;
|
|
if (GHIDRA_CAST<int *>(local_2c.x) == GHIDRA_CAST<int *>(0x0)) {
|
|
local_14 = 3;
|
|
}
|
|
else {
|
|
cVar2 = (**(code **)(*GHIDRA_CAST<int *>(local_2c.x) + 0x20))();
|
|
if (cVar2 != '\0') {
|
|
g_menuControllerIndex = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_2c.x) + 0xc));
|
|
}
|
|
local_14 = 4;
|
|
}
|
|
if (((GHIDRA_CAST<int *>(local_2c.y) != GHIDRA_CAST<int *>(0x0)) &&
|
|
(cVar2 = (**(code **)(*GHIDRA_CAST<int *>(local_2c.y) + 0xc))(), cVar2 != '\0')) &&
|
|
(g_inputDeviceRelease != (void *)0x0)) {
|
|
(*g_inputDeviceRelease)(&local_2c);
|
|
}
|
|
local_14 = 0xffffffff;
|
|
index = index + 1;
|
|
}
|
|
menu = local_30;
|
|
}
|
|
if (menu->_fadeOutActive != 0) {
|
|
menu->_fadeOutProgress = menu->_fadeOutProgress + 0.025;
|
|
}
|
|
if (menu->_fadeInActive != 0) {
|
|
menu->_fadeInProgress = menu->_fadeInProgress - 0.025;
|
|
}
|
|
switch(menu->_selectedMenuID) {
|
|
case 0:
|
|
goto switchD_00989c53_caseD_0;
|
|
case 1:
|
|
if (((g_manager->_framecount & 1) == 0) && ((menu->_menuTitle).TitleScreenSprite._loaded != 0))
|
|
{
|
|
(GHIDRA_CAST<AnimationState *>((&(menu->_menuTitle).TitleScreenSprite._animState)))->AnimationState::Update();
|
|
(GHIDRA_CAST<AnimationState *>((&(menu->_menuTitle).TitleScreenSprite._overlayAnimState)))->AnimationState::Update();
|
|
}
|
|
local_34 = -NAN;
|
|
local_30 = GHIDRA_CAST<MenuManager *>(0xe);
|
|
cVar2 = (**(code **)(PTR_vftable_00c57b18 + 0x74))
|
|
(0xffffffff,FUN_00a209e0,&local_30,0,&local_34);
|
|
if (cVar2 != '\0') {
|
|
g_menuControllerIndex = GHIDRA_INT(local_34);
|
|
push_menu(2,unused);
|
|
}
|
|
local_30 = GHIDRA_CAST<MenuManager *>(&DAT_0000000f);
|
|
cVar2 = (**(code **)(PTR_vftable_00c57b18 + 0x74))(0xffffffff,FUN_00a209e0,&local_30,0,0);
|
|
if (cVar2 != '\0') {
|
|
local_2c.x = 300.0;
|
|
local_2c.y = (float)&DAT_bf800000;
|
|
MessagePopup::MessagePopup
|
|
(exitPopup,&g_manager->_font2_TeamMeatEx12,FUN_009ef550,(void *)0x0,&local_2c);
|
|
local_14 = 5;
|
|
MessagePopup::add_yes_no_buttons(GHIDRA_CAST<byte *>("##PLATFORM###CONFIRM_EXIT_GAME"),exitPopup);
|
|
(GHIDRA_CAST<PopupQueue *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_manager[1]._gamestate)) + 0xcf0))))))->PopupQueue::push(exitPopup);
|
|
local_6c = 0;
|
|
local_68 = 0;
|
|
local_74 = 0;
|
|
local_70 = 0;
|
|
local_7c = 0;
|
|
local_78 = 0;
|
|
FID_conflict__Tidy(local_88);
|
|
FID_conflict__Tidy(local_94);
|
|
}
|
|
break;
|
|
case 2:
|
|
(GHIDRA_CAST<Menu_Save *>((&menu->_menuSave)))->Menu_Save::Update();
|
|
break;
|
|
case 3:
|
|
(GHIDRA_CAST<Menu_Game *>((&menu->_menuGame)))->Menu_Game::Update();
|
|
break;
|
|
case 4:
|
|
(GHIDRA_CAST<Menu_DailyChallenge *>((&menu->_menuDailyChallenge)))->Menu_DailyChallenge::Update();
|
|
break;
|
|
case 5:
|
|
(GHIDRA_CAST<Menu_Character *>((&menu->_menuCharacter)))->Menu_Character::Update();
|
|
break;
|
|
case 6:
|
|
(GHIDRA_CAST<Menu_SpecialSeeds *>((&menu->_menuSpecialSeeds)))->Menu_SpecialSeeds::Update();
|
|
break;
|
|
case 7:
|
|
Menu_Challenge::Update();
|
|
break;
|
|
case 8:
|
|
Menu_Collection::Update();
|
|
break;
|
|
case 9:
|
|
(GHIDRA_CAST<Menu_Stats *>((&menu->_menuStats)))->Menu_Stats::Update();
|
|
break;
|
|
case 10:
|
|
(GHIDRA_CAST<Menu_Options *>((&menu->_menuOptions)))->Menu_Options::Update();
|
|
break;
|
|
case 0xb:
|
|
Menu_ControllerSelect::Update();
|
|
break;
|
|
case 0xc:
|
|
(GHIDRA_CAST<Menu_KeyConfig *>((&menu->_menuKeyConfig)))->Menu_KeyConfig::Update();
|
|
break;
|
|
case 0xd:
|
|
Menu_Cutscenes::Update();
|
|
break;
|
|
case 0xe:
|
|
(GHIDRA_CAST<Menu_Bestiary *>((&menu->_menuBestiary)))->Menu_Bestiary::Update();
|
|
break;
|
|
case 0xf:
|
|
(GHIDRA_CAST<Menu_CustomChallenge *>((&menu->_menuCustomChallenge)))->Menu_CustomChallenge::Update();
|
|
break;
|
|
case 0x10:
|
|
(GHIDRA_CAST<Menu_Mods *>((&menu->_menuMods)))->Menu_Mods::Update();
|
|
break;
|
|
case 0x11:
|
|
Menu_OnlineLobby::Update();
|
|
break;
|
|
case 0x12:
|
|
(GHIDRA_CAST<Menu_OnlineLobbyList *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menu)) + 0xe648))))))->Menu_OnlineLobbyList::Update();
|
|
break;
|
|
case 0x13:
|
|
(GHIDRA_CAST<Menu_Online *>((&menu->_menuOnline)))->Menu_Online::Update();
|
|
break;
|
|
case 0x14:
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menu)) + 0xeb50)))))))->Menu_Options::Update();
|
|
break;
|
|
case 0x15:
|
|
(GHIDRA_CAST<Menu_OnlineMode *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menu)) + 0xedd8))))))->Menu_OnlineMode::Update();
|
|
break;
|
|
case 0x16:
|
|
if (((g_manager->_framecount & 1) == 0) && ((menu->_onlineStatsMenuSprite)._loaded != 0)) {
|
|
(GHIDRA_CAST<AnimationState *>((&(menu->_onlineStatsMenuSprite)._animState)))->AnimationState::Update();
|
|
(GHIDRA_CAST<AnimationState *>((&(menu->_onlineStatsMenuSprite)._overlayAnimState)))->AnimationState::Update();
|
|
}
|
|
Menu_OnlineAwards::Update();
|
|
pLVar3 = (GHIDRA_CAST<ANM2 *>((&menu->_onlineStatsMenuSprite)))->ANM2::GetLayer(GHIDRA_CAST<byte *>("Cursor"));
|
|
if (pLVar3 == GHIDRA_CAST<LayerState *>(0x0)) {
|
|
KAGE_LogMessage(4,GHIDRA_CAST<byte *>("[warn] no layer named %s\n"));
|
|
}
|
|
else {
|
|
(GHIDRA_CAST<ANM2 *>((&menu->_onlineStatsMenuSprite)))->ANM2::SetLayerFrame(*GHIDRA_CAST<int *>(pLVar3->_layerData),
|
|
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menu)) + 0xf6f0)))));
|
|
}
|
|
}
|
|
if (((((menu->_shouldLerpColorModState != 0) &&
|
|
(ColorModState::move_toward
|
|
(&menu->_currentColorModState,&(menu->_targetColorModState)._red,
|
|
&(menu->_lerpColorModState)._red),
|
|
*extraout_ECX == (menu->_targetColorModState)._red)) &&
|
|
(extraout_ECX[1] == (menu->_targetColorModState)._green)) &&
|
|
((extraout_ECX[2] == (menu->_targetColorModState)._blue &&
|
|
(extraout_ECX[3] == (menu->_targetColorModState)._amount)))) &&
|
|
((extraout_ECX[4] == (menu->_targetColorModState)._brightness &&
|
|
(extraout_ECX[5] == (menu->_targetColorModState)._contrast)))) {
|
|
menu->_shouldLerpColorModState = 0;
|
|
}
|
|
switchD_00989c53_caseD_0:
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 0098a040
|
|
void MenuManager::Render()
|
|
{
|
|
undefined4 *puVar1;
|
|
KColor *color;
|
|
void *pvVar2;
|
|
undefined *shader;
|
|
ColorMod *color_00;
|
|
KColor *color_01;
|
|
ColorMod *extraout_ECX;
|
|
AnimationState *secondAnimState;
|
|
ColorMod *extraout_ECX_00;
|
|
KColor *color_02;
|
|
int unused;
|
|
int unused_00;
|
|
KColor *color_03;
|
|
ColorMod *unusedArg;
|
|
undefined1 *other;
|
|
MenuManager *menuManager;
|
|
int iVar3;
|
|
float vignetteIntensity;
|
|
undefined1 auStackY_1e8 [128];
|
|
Vector *image;
|
|
Vector *image_00;
|
|
Vector *imageRefCount;
|
|
undefined1 quad [2];
|
|
undefined1 auStack_146 [110];
|
|
undefined4 local_d8 [8];
|
|
undefined4 local_b8;
|
|
undefined4 uStack_b4;
|
|
undefined4 local_b0;
|
|
undefined4 local_ac;
|
|
undefined4 uStack_a8;
|
|
undefined4 uStack_a4;
|
|
float fStack_a0;
|
|
undefined4 local_8c;
|
|
undefined4 uStack_88;
|
|
undefined4 local_84;
|
|
KColor scratchKColor;
|
|
undefined4 *overlayImageRef;
|
|
ColorMod *shadowColor;
|
|
MenuManager *savedMenuManager;
|
|
KColor quadColor;
|
|
byte isColorModifierEnabled;
|
|
Vector renderPos;
|
|
ColorMod shaderColor;
|
|
float local_14;
|
|
code *drawFn;
|
|
byte isAchievementScreenVisible;
|
|
Manager *manager;
|
|
float prevVignetteIntensity;
|
|
|
|
menuManager = g_menuManager;
|
|
local_14 = (float)(__security_cookie ^ GHIDRA_UINT(((&shaderColor)[1]._tint + 1)));
|
|
isColorModifierEnabled = (g_manager->_optionsConfig)._enableColorModifier;
|
|
savedMenuManager = g_menuManager;
|
|
if (isColorModifierEnabled != 0) {
|
|
renderPos.x = 0.0;
|
|
renderPos.y = 0.0;
|
|
std::vector::resize(&renderPos);
|
|
puVar1 = std::deque::back();
|
|
if (GHIDRA_CAST<byte *>((puVar1 + 1)) != GHIDRA_CAST<byte *>(0x0)) {
|
|
*GHIDRA_CAST<byte *>((puVar1 + 1)) = (byte)(g_graphicsManager_flags >> 5) & 1;
|
|
}
|
|
*puVar1 = g_graphicsManager_renderTarget;
|
|
(GHIDRA_CAST<KAGE_Graphics *>((&DAT_00c798e0)))->KAGE_Graphics::SetRenderTarget(DAT_00c798b0,1);
|
|
}
|
|
(GHIDRA_CAST<RenderTarget *>((&DAT_00c798e0)))->RenderTarget::Clear();
|
|
g_graphicsManager_blendMode[1] = 1;
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
if ((g_graphicsManager_flags & 4) == 0) {
|
|
g_graphicsManager_blendMode[1] = 6;
|
|
}
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
(GHIDRA_CAST<KColor *>((&scratchKColor)))->KColor::SetFromARGB(0xffccbebb);
|
|
pvVar2 = render_quad_set_uniform_color(quad,0.0,0.0,g_screenWidth,g_screenHeight,color);
|
|
image_00 = GHIDRA_CAST<Vector *>(0x98a14f);
|
|
render_color_shader_pass(pvVar2);
|
|
renderPos.y = (g_menuManager->_ViewPosition).y + (menuManager->_menuTitle).PositionY;
|
|
renderPos.x = (g_menuManager->_ViewPosition).x + (menuManager->_menuTitle).PositionX;
|
|
if ((menuManager->_menuTitle).TitleScreenSprite._loaded != 0) {
|
|
if ((menuManager->_menuTitle).TitleScreenSprite._overlayRenderFirst == 0) {
|
|
AnimationState::Render
|
|
(&(menuManager->_menuTitle).TitleScreenSprite._animState,&renderPos,&g_vectorZero,
|
|
&g_vectorZero);
|
|
secondAnimState = &(menuManager->_menuTitle).TitleScreenSprite._overlayAnimState;
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(&(menuManager->_menuTitle).TitleScreenSprite._overlayAnimState,&renderPos,
|
|
&g_vectorZero,&g_vectorZero);
|
|
secondAnimState = &(menuManager->_menuTitle).TitleScreenSprite._animState;
|
|
}
|
|
image_00 = &g_vectorZero;
|
|
AnimationState::Render(secondAnimState,&renderPos,&g_vectorZero,&g_vectorZero);
|
|
}
|
|
(GHIDRA_CAST<Menu_Challenge *>((&menuManager->_menuChallenge)))->Menu_Challenge::Render();
|
|
(GHIDRA_CAST<Menu_DailyChallenge *>((&menuManager->_menuDailyChallenge)))->Menu_DailyChallenge::Render();
|
|
(GHIDRA_CAST<Menu_Collection *>((&menuManager->_menuCollection)))->Menu_Collection::Render();
|
|
(GHIDRA_CAST<Menu_Bestiary *>((&menuManager->_menuBestiary)))->Menu_Bestiary::Render();
|
|
(GHIDRA_CAST<Menu_Stats *>((&menuManager->_menuStats)))->Menu_Stats::Render();
|
|
(GHIDRA_CAST<Menu_Character *>((&menuManager->_menuCharacter)))->Menu_Character::Render();
|
|
(GHIDRA_CAST<Menu_Game *>((&menuManager->_menuGame)))->Menu_Game::Render();
|
|
(GHIDRA_CAST<Menu_SpecialSeeds *>((&menuManager->_menuSpecialSeeds)))->Menu_SpecialSeeds::Render();
|
|
(GHIDRA_CAST<Menu_ControllerSelect *>((&menuManager->_menuControllerSelect)))->Menu_ControllerSelect::Render();
|
|
(GHIDRA_CAST<Menu_KeyConfig *>((&menuManager->_menuKeyConfig)))->Menu_KeyConfig::Render();
|
|
(GHIDRA_CAST<Menu_Options *>((&menuManager->_menuOptions)))->Menu_Options::Render();
|
|
Menu_Cutscenes::Render();
|
|
(GHIDRA_CAST<Menu_CustomChallenge *>((&menuManager->_menuCustomChallenge)))->Menu_CustomChallenge::Render();
|
|
(GHIDRA_CAST<AnimationLayer *>((GHIDRA_CAST<AnimationLayer *>(&menuManager->_menuMods))))->AnimationLayer::RenderFrame();
|
|
(GHIDRA_CAST<Menu_OnlineLobby *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menuManager)) + 0xe648))))))->Menu_OnlineLobby::Render();
|
|
(GHIDRA_CAST<Menu_OnlineLobby *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menuManager)) + 0xdce8))))))->Menu_OnlineLobby::Render();
|
|
(GHIDRA_CAST<Menu_Online *>((&menuManager->_menuOnline)))->Menu_Online::Render();
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menuManager)) + 0xeb50)))))))->Menu_Options::Render();
|
|
Menu_Online::render_mode_select();
|
|
Menu_Online::render_descriptions();
|
|
(GHIDRA_CAST<Menu_Save *>((&menuManager->_menuSave)))->Menu_Save::Render();
|
|
imageRefCount = GHIDRA_CAST<Vector *>(0x98a2c5);
|
|
(GHIDRA_CAST<Leaderboard *>((GHIDRA_CAST<Leaderboard *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menuManager)) + 0x1178)))))))->Leaderboard::Render();
|
|
renderPos.y = (menuManager->_ViewPosition).y + menuManager->_scrollinterpolationY;
|
|
renderPos.x = (menuManager->_ViewPosition).x + menuManager->_scrollinterpolationX;
|
|
if ((menuManager->_flySprite)._loaded != 0) {
|
|
if ((menuManager->_flySprite)._overlayRenderFirst == 0) {
|
|
AnimationState::Render
|
|
(&(menuManager->_flySprite)._animState,&renderPos,&g_vectorZero,&g_vectorZero);
|
|
secondAnimState = &(menuManager->_flySprite)._overlayAnimState;
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(&(menuManager->_flySprite)._overlayAnimState,&renderPos,&g_vectorZero,&g_vectorZero
|
|
);
|
|
secondAnimState = &(menuManager->_flySprite)._animState;
|
|
}
|
|
imageRefCount = &g_vectorZero;
|
|
image_00 = &g_vectorZero;
|
|
AnimationState::Render(secondAnimState,&renderPos,&g_vectorZero,&g_vectorZero);
|
|
}
|
|
manager = g_manager;
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menuManager)) + 0x30))) == '\0') {
|
|
switchD_0098a35a_caseD_1:
|
|
(g_manager->_popupButtons)._buttons[0]._targetSlideOffset = 96.0;
|
|
goto LAB_0098a3c0;
|
|
}
|
|
switch(menuManager->_selectedMenuID) {
|
|
case 1:
|
|
goto switchD_0098a35a_caseD_1;
|
|
case 2:
|
|
case 3:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 10:
|
|
case 0xb:
|
|
case 0xc:
|
|
(g_manager->_popupButtons)._buttons[0]._targetSlideOffset = 0.0;
|
|
(manager->_popupButtons)._buttons[1]._targetSlideOffset = 0.0;
|
|
goto switchD_0098a35a_default;
|
|
case 4:
|
|
case 8:
|
|
case 0xd:
|
|
case 0xe:
|
|
(g_manager->_popupButtons)._buttons[0]._targetSlideOffset = 25.0;
|
|
break;
|
|
case 9:
|
|
isAchievementScreenVisible = (menuManager->_menuStats)._isAchievementScreenVisible;
|
|
(g_manager->_popupButtons)._buttons[0]._targetSlideOffset = 0.0;
|
|
if (isAchievementScreenVisible == 0) {
|
|
(manager->_popupButtons)._buttons[1]._targetSlideOffset = 0.0;
|
|
goto switchD_0098a35a_default;
|
|
}
|
|
break;
|
|
default:
|
|
goto switchD_0098a35a_default;
|
|
}
|
|
LAB_0098a3c0:
|
|
(manager->_popupButtons)._buttons[1]._targetSlideOffset = 96.0;
|
|
switchD_0098a35a_default:
|
|
iVar3 = (menuManager->_menuCharacter).Difficulty;
|
|
if ((iVar3 == 1) || (iVar3 == 3)) {
|
|
vignetteIntensity = 0.5;
|
|
}
|
|
else {
|
|
vignetteIntensity = 0.0;
|
|
}
|
|
prevVignetteIntensity = menuManager->_vingnetteIntensity;
|
|
if (0.025 < ABS(prevVignetteIntensity - vignetteIntensity)) {
|
|
if (vignetteIntensity <= prevVignetteIntensity) {
|
|
vignetteIntensity = prevVignetteIntensity - 0.025;
|
|
}
|
|
else {
|
|
vignetteIntensity = prevVignetteIntensity + 0.025;
|
|
}
|
|
}
|
|
menuManager->_vingnetteIntensity = vignetteIntensity;
|
|
shaderColor._tint[0] = 1.0;
|
|
shaderColor._tint[1] = 1.0;
|
|
shaderColor._tint[2] = 1.0;
|
|
shaderColor._tint[3] = 1.0;
|
|
shader = &g_shaders;
|
|
if ((DAT_00c7911c & 1) == 0) {
|
|
shader = g_currentShader;
|
|
}
|
|
other = &(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((menuManager)) + 0x168)));
|
|
shaderColor._offset[0] = 0.0;
|
|
shaderColor._offset[1] = 0.0;
|
|
shaderColor._colorize[0] = 0.0;
|
|
shaderColor._colorize[1] = 0.0;
|
|
shaderColor._colorize[2] = 0.0;
|
|
shaderColor._colorize[3] = 0.0;
|
|
shaderColor._offset[2] = 0.0;
|
|
g_currentShader = shader;
|
|
overlayImageRef = GHIDRA_CAST<undefined4 *>(other);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((quad + -0x10)))->KAGE::SmartPointer::operator_assign(other);
|
|
image = GHIDRA_CAST<Vector *>(0x98a47b);
|
|
apply_sprite_shader_params(&shaderColor,1,image_00,imageRefCount);
|
|
drawFn = *(code **)(**GHIDRA_CAST<int **>(other) + 0x1c);
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color(quad,-0.5,-0.5,g_screenWidth + 0.5,g_screenHeight + 0.5,color_01);
|
|
(*drawFn)();
|
|
menuManager = savedMenuManager;
|
|
renderPos = (Vector)((ulonglong)GHIDRA_UINT((g_screenHeight - 148.0)) << 0x20);
|
|
unusedArg = extraout_ECX;
|
|
if ((savedMenuManager->_MenuShadowSprite)._loaded != 0) {
|
|
if ((savedMenuManager->_MenuShadowSprite)._overlayRenderFirst == 0) {
|
|
AnimationState::Render
|
|
(&(savedMenuManager->_MenuShadowSprite)._animState,&renderPos,&g_vectorZero,
|
|
&g_vectorZero);
|
|
secondAnimState = &(menuManager->_MenuShadowSprite)._overlayAnimState;
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(&(savedMenuManager->_MenuShadowSprite)._overlayAnimState,&renderPos,&g_vectorZero,
|
|
&g_vectorZero);
|
|
secondAnimState = &(menuManager->_MenuShadowSprite)._animState;
|
|
}
|
|
image = &g_vectorZero;
|
|
AnimationState::Render(secondAnimState,&renderPos,&g_vectorZero,&g_vectorZero);
|
|
unusedArg = extraout_ECX_00;
|
|
}
|
|
vignetteIntensity = menuManager->_vingnetteIntensity;
|
|
if (0.0 < vignetteIntensity) {
|
|
shadowColor = &(menuManager->_MenuShadowSprite)._color;
|
|
local_ac = 0x3f800000;
|
|
uStack_a8 = 0x3f800000;
|
|
uStack_a4 = 0x3f800000;
|
|
local_8c = 0;
|
|
uStack_88 = 0;
|
|
local_84 = 0;
|
|
if (shadowColor != GHIDRA_CAST<ColorMod *>(&local_ac)) {
|
|
(menuManager->_MenuShadowSprite)._color._colorize[0] = 0.0;
|
|
(menuManager->_MenuShadowSprite)._color._colorize[1] = 0.0;
|
|
(menuManager->_MenuShadowSprite)._color._colorize[2] = 0.0;
|
|
(menuManager->_MenuShadowSprite)._color._colorize[3] = 0.0;
|
|
shadowColor->_tint[0] = 1.0;
|
|
(menuManager->_MenuShadowSprite)._color._tint[1] = 1.0;
|
|
(menuManager->_MenuShadowSprite)._color._tint[2] = 1.0;
|
|
(menuManager->_MenuShadowSprite)._color._tint[3] = vignetteIntensity;
|
|
(menuManager->_MenuShadowSprite)._color._offset[0] = 0.0;
|
|
(menuManager->_MenuShadowSprite)._color._offset[1] = 0.0;
|
|
(menuManager->_MenuShadowSprite)._color._offset[2] = 0.0;
|
|
}
|
|
shader = &g_shaders;
|
|
if ((DAT_00c7911c & 1) == 0) {
|
|
shader = g_currentShader;
|
|
}
|
|
pvVar2 = (void *)0x98a5ea;
|
|
g_currentShader = shader;
|
|
fStack_a0 = vignetteIntensity;
|
|
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&shaderColor))))->Color::Color();
|
|
puVar1 = overlayImageRef;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_1e8 + 0x88)))->KAGE::SmartPointer::operator_assign(overlayImageRef);
|
|
apply_sprite_shader_params(color_00,1,image,pvVar2);
|
|
quadColor._unk = 0;
|
|
quadColor._red = 1.0;
|
|
quadColor._green = 1.0;
|
|
drawFn = *(code **)(*GHIDRA_CAST<int *>(*puVar1) + 0x1c);
|
|
quadColor._blue = 1.0;
|
|
quadColor._alpha = savedMenuManager->_vingnetteIntensity;
|
|
(GHIDRA_CAST<KColor *>((&scratchKColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color(quad,-0.5,-0.5,g_screenWidth + 0.5,g_screenHeight + 0.5,color_02);
|
|
(*drawFn)();
|
|
local_b8 = 0;
|
|
uStack_b4 = 0;
|
|
local_b0 = 0;
|
|
unusedArg = shadowColor;
|
|
menuManager = savedMenuManager;
|
|
if (shadowColor != GHIDRA_CAST<ColorMod *>(local_d8)) {
|
|
shadowColor->_colorize[0] = 0.0;
|
|
shadowColor->_colorize[1] = 0.0;
|
|
shadowColor->_colorize[2] = 0.0;
|
|
shadowColor->_colorize[3] = 0.0;
|
|
shadowColor->_offset[0] = 0.0;
|
|
shadowColor->_offset[1] = 0.0;
|
|
shadowColor->_tint[0] = 1.0;
|
|
shadowColor->_tint[1] = 1.0;
|
|
shadowColor->_tint[2] = 1.0;
|
|
shadowColor->_tint[3] = 1.0;
|
|
shadowColor->_offset[2] = 0.0;
|
|
}
|
|
}
|
|
if (isColorModifierEnabled != 0) {
|
|
_glfw_context_reset();
|
|
pop_render_target();
|
|
(GHIDRA_CAST<RenderTarget *>((&DAT_00c798e0)))->RenderTarget::Clear();
|
|
shader = &DAT_00c79348;
|
|
if ((DAT_00c7934c & 1) == 0) {
|
|
shader = g_currentShader;
|
|
}
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
g_graphicsManager_blendMode[1] = 1;
|
|
g_graphicsManager_blendMode[2] = 0;
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[4] = 0;
|
|
g_currentShader = shader;
|
|
(GHIDRA_CAST<Shader *>((shader)))->Shader::set_uniform(GHIDRA_CAST<byte *>("Amount"),8,&(menuManager->_currentColorModState)._amount,
|
|
GHIDRA_INT(shader));
|
|
(GHIDRA_CAST<Shader *>((g_currentShader)))->Shader::set_uniform(GHIDRA_CAST<byte *>("Brightness"),8,
|
|
&(menuManager->_currentColorModState)._brightness,unused);
|
|
(GHIDRA_CAST<Shader *>((g_currentShader)))->Shader::set_uniform(GHIDRA_CAST<byte *>("Contrast"),8,
|
|
&(menuManager->_currentColorModState)._contrast,unused_00);
|
|
shaderColor._colorize[2] = 0.0;
|
|
shaderColor._tint[2] = 0.0;
|
|
shaderColor._colorize[1] = 0.0;
|
|
shaderColor._tint[3] = 0.0;
|
|
shaderColor._offset[0] = 1.0;
|
|
shaderColor._colorize[0] = 1.0;
|
|
shaderColor._offset[1] = 1.0;
|
|
shaderColor._colorize[3] = 1.0;
|
|
shaderColor._offset[2] = (float)(GHIDRA_UINT(shaderColor._offset[2]) & 0xffffff00);
|
|
(GHIDRA_CAST<KColor *>((&scratchKColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color(quad,0.0,0.0,g_screenWidth,g_screenHeight,color_03);
|
|
quadColor._red = (menuManager->_currentColorModState)._red;
|
|
quadColor._green = (menuManager->_currentColorModState)._green;
|
|
quadColor._blue = (menuManager->_currentColorModState)._blue;
|
|
quadColor._unk = 0;
|
|
quadColor._alpha = 1.0;
|
|
(**(code **)(*DAT_00c798b0 + 0x14))(shaderColor._tint + 2);
|
|
g_graphicsManager_blendMode[1] = 1;
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
unusedArg = GHIDRA_CAST<ColorMod *>(&DAT_00000006);
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
if ((g_graphicsManager_flags & 4) == 0) {
|
|
g_graphicsManager_blendMode[1] = 6;
|
|
}
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
}
|
|
iVar3 = 1;
|
|
shader_cache_find(GHIDRA_INT(unusedArg));
|
|
if (menuManager->_fadeOutActive != 0) {
|
|
g_graphicsManager_blendMode[1] = 1;
|
|
if ((g_graphicsManager_flags & 4) == 0) {
|
|
g_graphicsManager_blendMode[1] = 6;
|
|
}
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
quadColor._alpha = menuManager->_fadeOutProgress;
|
|
quadColor._unk = 0;
|
|
quadColor._red = 0.0;
|
|
quadColor._green = 0.0;
|
|
quadColor._blue = 0.0;
|
|
render_quad_set_uniform_color(quad,0.0,0.0,g_screenWidth,g_screenHeight,&quadColor);
|
|
render_color_shader_pass(quad);
|
|
Manager::render_loading_icon(menuManager->_fadeOutProgress);
|
|
}
|
|
if (menuManager->_fadeInActive != 0) {
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
if ((g_graphicsManager_flags & 4) == 0) {
|
|
iVar3 = 6;
|
|
}
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
quadColor._red = (menuManager->_fadeInColor)._red;
|
|
quadColor._unk = (menuManager->_fadeInColor)._unk;
|
|
quadColor._green = (menuManager->_fadeInColor)._green;
|
|
quadColor._blue = (menuManager->_fadeInColor)._blue;
|
|
quadColor._alpha = menuManager->_fadeInProgress;
|
|
g_graphicsManager_blendMode[1] = iVar3;
|
|
render_quad_set_uniform_color(quad,0.0,0.0,g_screenWidth,g_screenHeight,&quadColor);
|
|
render_color_shader_pass(quad);
|
|
if (menuManager->_fadeInProgress <= 0.0) {
|
|
menuManager->_fadeInActive = 0;
|
|
menuManager->_fadeInProgress = 0.0;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// 0098aa30
|
|
void MenuManager::SetState(int state, byte isRebuildStack)
|
|
{
|
|
void **ppvVar1;
|
|
void *pvVar2;
|
|
byte isAllMarks;
|
|
undefined4 *stackEnd;
|
|
int slotStatus;
|
|
byte unk;
|
|
Menu_Save *extraout_ECX;
|
|
Menu_Save *extraout_ECX_00;
|
|
Menu_Save *extraout_ECX_01;
|
|
Menu_Save *extraout_ECX_02;
|
|
Menu_Save *extraout_ECX_03;
|
|
Menu_Save *this_00;
|
|
Menu_Save *extraout_ECX_04;
|
|
Menu_Save *extraout_ECX_05;
|
|
int iVar3;
|
|
int local_10 [3];
|
|
int *historyEnd;
|
|
Manager *manager;
|
|
MenuManager *menuManager;
|
|
|
|
pvVar2 = (this->_menuStateHistory)._end;
|
|
this_00 = (this->_menuStateHistory)._begin;
|
|
if (isRebuildStack == 0) {
|
|
if (((GHIDRA_INT(pvVar2) - GHIDRA_INT(this_00) & 0xfffffffcU) == 0) && (state != 1)) {
|
|
KAGE_LogMessage(4,GHIDRA_CAST<byte *>("Setting the intitial menu state to %d, are you sure about that? \n")
|
|
);
|
|
this_00 = extraout_ECX_03;
|
|
}
|
|
}
|
|
else {
|
|
if ((GHIDRA_INT(pvVar2) - GHIDRA_INT(this_00) >> 2 != 0) && (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar2) + -4)) == 4)) {
|
|
FUN_008d0730();
|
|
this_00 = (this->_menuStateHistory)._begin;
|
|
}
|
|
iVar3 = 1;
|
|
(this->_menuStateHistory)._end = this_00;
|
|
do {
|
|
if (state < iVar3) break;
|
|
historyEnd = (this->_menuStateHistory)._end;
|
|
local_10[0] = iVar3;
|
|
if (historyEnd == (this->_menuStateHistory)._capacity) {
|
|
std::vector<unsigned_int>::_Emplace_reallocate(historyEnd,local_10);
|
|
this_00 = extraout_ECX;
|
|
}
|
|
else {
|
|
*historyEnd = iVar3;
|
|
ppvVar1 = &(this->_menuStateHistory)._end;
|
|
*ppvVar1 = (void *)(GHIDRA_INT(*ppvVar1) + 4);
|
|
}
|
|
iVar3 = iVar3 + 1;
|
|
} while (iVar3 < 4);
|
|
if (3 < state) {
|
|
if (state == 0x11) {
|
|
stackEnd = (this->_menuStateHistory)._end;
|
|
local_10[0] = 0x13;
|
|
if (stackEnd == (this->_menuStateHistory)._capacity) {
|
|
std::vector<unsigned_int>::_Emplace_reallocate(stackEnd,local_10);
|
|
this_00 = extraout_ECX_00;
|
|
}
|
|
else {
|
|
*stackEnd = 0x13;
|
|
ppvVar1 = &(this->_menuStateHistory)._end;
|
|
*ppvVar1 = (void *)(GHIDRA_INT(*ppvVar1) + 4);
|
|
}
|
|
stackEnd = (this->_menuStateHistory)._end;
|
|
local_10[0] = 0x11;
|
|
if (stackEnd == (this->_menuStateHistory)._capacity) {
|
|
LAB_0098ab0d:
|
|
std::vector<unsigned_int>::_Emplace_reallocate(stackEnd,local_10);
|
|
this_00 = extraout_ECX_01;
|
|
}
|
|
else {
|
|
*stackEnd = 0x11;
|
|
ppvVar1 = &(this->_menuStateHistory)._end;
|
|
*ppvVar1 = (void *)(GHIDRA_INT(*ppvVar1) + 4);
|
|
}
|
|
}
|
|
else if (state == 0x13) {
|
|
stackEnd = (this->_menuStateHistory)._end;
|
|
local_10[0] = state;
|
|
if (stackEnd == (this->_menuStateHistory)._capacity) goto LAB_0098ab0d;
|
|
*stackEnd = 0x13;
|
|
ppvVar1 = &(this->_menuStateHistory)._end;
|
|
*ppvVar1 = (void *)(GHIDRA_INT(*ppvVar1) + 4);
|
|
}
|
|
else {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("Unhandled Menu State trying to create a menu stack"));
|
|
this_00 = extraout_ECX_02;
|
|
}
|
|
}
|
|
}
|
|
manager = g_manager;
|
|
iVar3 = this->_selectedMenuID;
|
|
if ((iVar3 != 0) && (state != 0)) {
|
|
local_10[0] = 8;
|
|
seed_fart_sound_override(local_10);
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(local_10[0],1.0,0,0,1.0,0.0);
|
|
iVar3 = this->_selectedMenuID;
|
|
this->_state = 1;
|
|
this_00 = extraout_ECX_04;
|
|
}
|
|
if (iVar3 == 0x10) {
|
|
if (state != 3) goto LAB_0098ac76;
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xda90))) != '\0') {
|
|
(GHIDRA_CAST<ModManager *>((&g_manager->_modManager)))->ModManager::Reset();
|
|
FUN_00959fa0(g_manager->_currentSaveSlot);
|
|
iVar3 = this->_selectedMenuID;
|
|
this_00 = extraout_ECX_05;
|
|
goto LAB_0098abe2;
|
|
}
|
|
LAB_0098adf4:
|
|
if (this->_selectedMenuID != 6) goto LAB_0098ae05;
|
|
}
|
|
else {
|
|
LAB_0098abe2:
|
|
if (iVar3 == 2) {
|
|
if (state == 3) {
|
|
(GHIDRA_CAST<Menu_Character *>((&this->_menuCharacter)))->Menu_Character::Reset();
|
|
FUN_00982060();
|
|
pvVar2 = (this->_seedsObject)._seedEffects;
|
|
ppvVar1 = &(this->_seedsObject)._seedEffects;
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<std::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(ppvVar1,(fuzzer_allocator<std::_Tree_node<unsigned_int,void*>_> *)ppvVar1,
|
|
*(_Tree_node<unsigned_int,void*> **)(GHIDRA_INT(pvVar2) + 4));
|
|
*(void **)(GHIDRA_CAST<char *>(pvVar2) + 4) = pvVar2;
|
|
*(void **)pvVar2 = pvVar2;
|
|
*(void **)(GHIDRA_CAST<char *>(pvVar2) + 8) = pvVar2;
|
|
(this->_seedsObject)._seedEffectsCount = 0;
|
|
goto LAB_0098adf4;
|
|
}
|
|
LAB_0098ac76:
|
|
menuManager = g_menuManager;
|
|
if ((state == 7) || (iVar3 == 7)) {
|
|
(GHIDRA_CAST<Menu_Challenge *>((&this->_menuChallenge)))->Menu_Challenge::reset();
|
|
}
|
|
else {
|
|
if (iVar3 != 0xc) {
|
|
if ((iVar3 == 3) && (state == 2)) {
|
|
iVar3 = g_manager->_currentSaveSlot;
|
|
Menu_Save::replace_slot_graphics
|
|
(this_00,GHIDRA_CAST<ANM2 *>((GHIDRA_INT((&this->_menuTitle + 1)) + iVar3 * 0x114 + 0x1c)));
|
|
slotStatus = save_slot_get_status();
|
|
(this->_menuGame).GameMenuSprite._filename._buf[iVar3 + -0x445] = (char)slotStatus;
|
|
isAllMarks = has_all_completion_marks();
|
|
(this->_menuGame).GameMenuSprite._filename._buf[iVar3 + -0x442] = isAllMarks;
|
|
(GHIDRA_CAST<Menu_Save *>((&this->_menuSave)))->Menu_Save::update_save_drawings();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT((&this->_menuTitle + 1)) + iVar3 * 0x114 + 0x1c)))))->ANM2::LoadGraphics(unk);
|
|
(GHIDRA_CAST<Menu_Character *>((&this->_menuCharacter)))->Menu_Character::set_character_menu_shown(0);
|
|
}
|
|
else if (state == 4) {
|
|
FUN_008d0730();
|
|
}
|
|
else if (state == 0xe) {
|
|
FUN_008c8760();
|
|
}
|
|
else if (state == 0xf) {
|
|
(GHIDRA_CAST<Menu_ModChallenges *>((&this->_menuCustomChallenge)))->Menu_ModChallenges::reset();
|
|
}
|
|
else if (state == 0x10) {
|
|
(GHIDRA_CAST<Menu_Mods *>((&this->_menuMods)))->Menu_Mods::reset();
|
|
}
|
|
else if (state == 0x12) {
|
|
(GHIDRA_CAST<Menu_OnlineLobbyList *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xe648))))))->Menu_OnlineLobbyList::reset();
|
|
}
|
|
else if (state == 0x13) {
|
|
(GHIDRA_CAST<Menu_Online *>((&this->_menuOnline)))->Menu_Online::enter();
|
|
}
|
|
else if (state == 10) {
|
|
(GHIDRA_CAST<Menu_Options *>((&this->_menuOptions)))->Menu_Options::reload();
|
|
}
|
|
else if (state == 0x14) {
|
|
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((this)) + 0xeb50)))))))->Menu_Options::reload();
|
|
}
|
|
else if (state == 0x15) {
|
|
FUN_008cc530();
|
|
}
|
|
else {
|
|
if (state != 0x16) goto LAB_0098adef;
|
|
FUN_008e71c0();
|
|
}
|
|
goto LAB_0098adf4;
|
|
}
|
|
(this->_menuKeyConfig).SelectedElement = 0;
|
|
(this->_menuKeyConfig).SelectedColumn = 0;
|
|
*GHIDRA_CAST<undefined1 *>(&(this->_menuKeyConfig).State) = 0;
|
|
menuManager->_viewPositionSet[0xc].y = -1890.0;
|
|
menuManager->_state = 1;
|
|
}
|
|
}
|
|
else {
|
|
if (iVar3 != 5) goto LAB_0098ac76;
|
|
(this->_menuCharacter)._seedUnlockPageState = 0;
|
|
(this->_menuCharacter)._seedUnlockPageTimer = 0;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuCharacter))) + 0xd84))))))->std::string::assign(&s_empty,0);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&((this->_menuCharacter))) + 0xd9c))))))->std::string::assign(&s_empty,0);
|
|
}
|
|
LAB_0098adef:
|
|
if (state != 6) goto LAB_0098adf4;
|
|
}
|
|
(GHIDRA_CAST<Menu_SpecialSeeds *>((&this->_menuSpecialSeeds)))->Menu_SpecialSeeds::Reset();
|
|
LAB_0098ae05:
|
|
this->_selectedMenuID = state;
|
|
return;
|
|
}
|
|
|
|
// 0098ae20
|
|
void MenuManager::push_menu(int menuId, int unused)
|
|
{
|
|
void **ppvVar1;
|
|
int state;
|
|
Vector optionsViewPos;
|
|
int *historyEnd;
|
|
MenuManager *menuManager;
|
|
|
|
state = menuId;
|
|
menuManager = g_menuManager;
|
|
if (g_menuManager->_selectedMenuID != menuId) {
|
|
if (g_menuManager->_selectedMenuID == 2) {
|
|
optionsViewPos.x = -g_menuManager->_viewPositionSet[10].x;
|
|
optionsViewPos.y = -g_menuManager->_viewPositionSet[10].y;
|
|
(GHIDRA_CAST<Menu_Options *>((&g_menuManager->_menuOptions)))->Menu_Options::Init(&optionsViewPos,0);
|
|
}
|
|
historyEnd = (menuManager->_menuStateHistory)._end;
|
|
if (historyEnd == (menuManager->_menuStateHistory)._capacity) {
|
|
std::vector<unsigned_int>::_Emplace_reallocate(historyEnd,&menuId);
|
|
state = menuId;
|
|
}
|
|
else {
|
|
*historyEnd = state;
|
|
ppvVar1 = &(menuManager->_menuStateHistory)._end;
|
|
*ppvVar1 = (void *)(GHIDRA_INT(*ppvVar1) + 4);
|
|
}
|
|
}
|
|
if (menuManager->_selectedMenuID != state) {
|
|
SetState(menuManager,state,0);
|
|
}
|
|
return;
|
|
}
|
|
|
|
// 0098af10
|
|
void MenuManager::scroll_options_menu(int menuId, int selectedRow, int rowCount)
|
|
{
|
|
MenuManager *menuManager;
|
|
|
|
menuManager = g_menuManager;
|
|
if (menuId == 10) {
|
|
g_menuManager->_viewPositionSet[10].y = -1080.0;
|
|
}
|
|
else if (menuId == 0x14) {
|
|
g_menuManager->_viewPositionSet[0x14].y = -1350.0;
|
|
}
|
|
else {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("Unknown options menu specified\n"));
|
|
}
|
|
if (3 < selectedRow) {
|
|
if (rowCount + -4 < selectedRow) {
|
|
selectedRow = rowCount + -4;
|
|
}
|
|
menuManager->_viewPositionSet[menuId].y =
|
|
menuManager->_viewPositionSet[menuId].y - (float)(selectedRow + -3) * 20.0;
|
|
}
|
|
menuManager->_state = 1;
|
|
return;
|
|
}
|