Curation round 2, wave A: anm2 (Anm2Ed JSON), text, config as idiomatic classes; SDL3 platform opens a window

- anm2.h/.cpp take over ANM2, AnimationState, LayerState, AnmCache and the frame data. They read Anm2Ed's JSON documents
  with simdjson and play them as the game does (interpolation baked at load). src/anm2/ and msvc.h are retired.
- font, formatted_text, string_table and rich_text take over the text classes. FormattedText::parse is still bit-exact
  against its assembly.
- options_config and challenge_params take over OptionsConfig, ChallengeParams and the .ini helpers. The tests include
  Save's exact bytes.
- platform.h/.cpp and main.cpp run IsaacMain on SDL3: the window and GL context open, and the run stops at the first
  built-in shader (FUN_00a13fa0).
- source_tree.py: a taken-over parent stays bytes, taken-over methods are not re-emitted as a namespace, and every
  address in a (a, b, c to d) list on a comment counts as taken over.
- log.h: reconstruction_missing() for a taken-over class's methods that are not written yet.
206 functions taken over, boot path 89/615. The full build waits for wave B: item_config, entity_config and mod_manager
still use the old APIs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-19 23:04:54 -05:00
1 parent d6e1ca7c6c
commit 780767f5e1
161 files changed
+8646 -21919

No files matched your search

+88 -88
View File
@@ -81,10 +81,10 @@ void Manager::update_ingame_input()
if (0xf < *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2b08))))) {
anim = *GHIDRA_CAST<uint8_t **>(anim);
}
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2800)))))))->ANM2::Play(anim,0);
ANM2::Play(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2800)))),anim,0);
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2909))) != '\0') {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2830)))))))->AnimationState::Update();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2850)))))))->AnimationState::Update();
AnimationState::Update(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2830)))));
AnimationState::Update(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((player)) + 0x2850)))));
}
}
}
@@ -399,13 +399,13 @@ Manager * Manager::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x18)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x1c)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x20)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x20)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 5;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x134)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x134)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x248)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_nightmareScene))) + 0x248)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x219d0)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x219d0)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 8;
container = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x21ae8)));
*GHIDRA_CAST<uint32_t *>(container) = 0;
@@ -418,7 +418,7 @@ Manager * Manager::constructor()
*GHIDRA_CAST<int **>(container) = containerProxy;
*containerProxy = GHIDRA_INT(container);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 9;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x21afc)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x21afc)))));
pAVar2 = &this->_achievementOverlay;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 10;
(pAVar2->_queue)._proxy = (void *)0x0;
@@ -431,7 +431,7 @@ Manager * Manager::constructor()
(pAVar2->_queue)._proxy = containerProxy;
*containerProxy = GHIDRA_INT(pAVar2);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
(GHIDRA_CAST<ANM2 *>((&(this->_achievementOverlay)._sprite)))->ANM2::constructor();
ANM2::constructor(&(this->_achievementOverlay)._sprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xc;
_eh_vector_constructor_iterator_
((this->_achievementOverlay)._entries,0x34,0x282,GHIDRA_CAST<_func_void_void_ptr *>(&LAB_00931490),
@@ -487,7 +487,7 @@ Manager * Manager::constructor()
(this->_optionsConfig)._optionsIniFilePath._capacity = 0xf;
(pOVar3->_optionsIniFilePath)._buf[0] = '\0';
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x12;
(GHIDRA_CAST<OptionsConfig *>(()))->OptionsConfig::reset_defaults();
OptionsConfig::reset_defaults();
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x13;
(GHIDRA_CAST<ItemConfig *>((&this->_itemConfig)))->ItemConfig::constructor();
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x14;
@@ -574,9 +574,9 @@ Manager * Manager::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a6f0)))) = 0xf;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a6dc))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x1f;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a6f4)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a6f4)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x20;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a808)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a808)))));
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a91c)))) = 0;
if (DAT_00c79860 != 0) {
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a91c)))) = 3;
@@ -596,32 +596,32 @@ Manager * Manager::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4abdc)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4abe0)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x25;
(GHIDRA_CAST<ANM2 *>((&this->_buttonsSprite)))->ANM2::constructor();
ANM2::constructor(&this->_buttonsSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x26;
(GHIDRA_CAST<ANM2 *>((&this->_platformIconsSprite)))->ANM2::constructor();
ANM2::constructor(&this->_platformIconsSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x27;
_eh_vector_constructor_iterator_
(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4ae0c))),8,2,GHIDRA_CAST<_func_void_void_ptr *>(&LAB_0040c5b0),TexturePtr::release);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x28;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4ae20)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4ae24)))) = 0;
(GHIDRA_CAST<Font *>((&this->_font1_TeamMeatEx10)))->Font::Font();
Font::Font(&this->_font1_TeamMeatEx10);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x29;
(GHIDRA_CAST<Font *>((&this->_font2_TeamMeatEx12)))->Font::Font();
Font::Font(&this->_font2_TeamMeatEx12);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2a;
(GHIDRA_CAST<Font *>((&this->_font3_TeamMeatEx16)))->Font::Font();
Font::Font(&this->_font3_TeamMeatEx16);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2b;
(GHIDRA_CAST<Font *>((&this->_font4_terminus)))->Font::Font();
Font::Font(&this->_font4_terminus);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2c;
(GHIDRA_CAST<Font *>((&this->_font5_terminus8)))->Font::Font();
Font::Font(&this->_font5_terminus8);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2d;
(GHIDRA_CAST<Font *>((&this->_font6_PFTempestaSevenCondensed)))->Font::Font();
Font::Font(&this->_font6_PFTempestaSevenCondensed);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2e;
(GHIDRA_CAST<Font *>((&this->_font7_Upheaval)))->Font::Font();
Font::Font(&this->_font7_Upheaval);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2f;
(GHIDRA_CAST<Font *>((&this->_font8_LuaMiniOutlined)))->Font::Font();
Font::Font(&this->_font8_LuaMiniOutlined);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x30;
(GHIDRA_CAST<Font *>((&this->_font9_PFTempestaSevenCondensedAgain)))->Font::Font();
Font::Font(&this->_font9_PFTempestaSevenCondensedAgain);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x31;
(GHIDRA_CAST<LobbySettings *>((&this->_lobbySettings)))->LobbySettings::reset();
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x32;
@@ -636,7 +636,7 @@ Manager * Manager::constructor()
(this->_dailyChallenge)._seed = 0;
(this->_dailyChallenge)._specialDailyId = 0;
(this->_dailyChallenge)._isPractice = 0;
(GHIDRA_CAST<ChallengeParam *>((&(this->_dailyChallenge)._params)))->ChallengeParam::Reset();
ChallengeParam::Reset(&(this->_dailyChallenge)._params);
(this->_lobbyMembers)._begin = (void *)0x0;
(this->_lobbyMembers)._end = (void *)0x0;
(this->_lobbyMembers)._capacity = (void *)0x0;
@@ -646,7 +646,7 @@ Manager * Manager::constructor()
(this->_pendingMenuFadeColor)._green = 0.0;
(this->_pendingMenuFadeColor)._blue = 0.0;
(this->_pendingMenuFadeColor)._alpha = 0.0;
(GHIDRA_CAST<ANM2 *>((&this->_cursorSprite)))->ANM2::constructor();
ANM2::constructor(&this->_cursorSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x36;
(this->_lastMousePosition).y = 0.0;
(this->_lastMousePosition).x = 0.0;
@@ -695,7 +695,7 @@ void Manager::destructor()
popupButtonSprite = GHIDRA_CAST<ANM2 *>(&this->_popupButtons);
buttonsLeft = 2;
do {
(GHIDRA_CAST<ANM2 *>((popupButtonSprite)))->ANM2::Reset();
ANM2::Reset(popupButtonSprite);
popupButtonSprite = GHIDRA_CAST<ANM2 *>((popupButtonSprite[1]._animDefaultName._buf + 4));
buttonsLeft = buttonsLeft + -1;
} while (buttonsLeft != 0);
@@ -703,8 +703,8 @@ void Manager::destructor()
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX_00);
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX_01);
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX_02);
(GHIDRA_CAST<StringTable *>((&this->_stringTable)))->StringTable::clear();
(GHIDRA_CAST<StringTable *>((&this->_stringTablePc)))->StringTable::clear();
StringTable::clear(&this->_stringTable);
StringTable::clear(&this->_stringTablePc);
FUN_008f5960();
if (this->_netplayManager != *GHIDRA_CAST<int *>((this + 1))) {
(GHIDRA_CAST<NetplayManager *>((GHIDRA_CAST<NetplayManager *>(&this->_netplayManager))))->NetplayManager::reset(1);
@@ -712,9 +712,9 @@ void Manager::destructor()
PopupQueue::destructor();
(GHIDRA_CAST<NetplayManager *>((GHIDRA_CAST<NetplayManager *>(&this->_netplayManager))))->NetplayManager::~NetplayManager();
local_8 = 0;
(GHIDRA_CAST<ANM2 *>((&this->_cursorSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_cursorSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_cursorSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_cursorSprite);
AnimationState::~AnimationState(&(this->_cursorSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_cursorSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_cursorSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_cursorSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0xffffffff;
@@ -729,7 +729,7 @@ void Manager::destructor()
msvc::vector<Vector>::_Tidy();
(GHIDRA_CAST<msvc::string *>(((this->_lobbySettings)._password._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>(((this->_lobbySettings)._seed._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<Font *>((&this->_font9_PFTempestaSevenCondensedAgain)))->Font::Unload();
Font::Unload(&this->_font9_PFTempestaSevenCondensedAgain);
fontCharsTree = &(this->_font9_PFTempestaSevenCondensedAgain)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -737,7 +737,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font9_PFTempestaSevenCondensedAgain)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font8_LuaMiniOutlined)))->Font::Unload();
Font::Unload(&this->_font8_LuaMiniOutlined);
fontCharsTree = &(this->_font8_LuaMiniOutlined)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -745,7 +745,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font8_LuaMiniOutlined)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font7_Upheaval)))->Font::Unload();
Font::Unload(&this->_font7_Upheaval);
fontCharsTree = &(this->_font7_Upheaval)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -753,7 +753,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font7_Upheaval)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font6_PFTempestaSevenCondensed)))->Font::Unload();
Font::Unload(&this->_font6_PFTempestaSevenCondensed);
fontCharsTree = &(this->_font6_PFTempestaSevenCondensed)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -761,7 +761,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font6_PFTempestaSevenCondensed)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font5_terminus8)))->Font::Unload();
Font::Unload(&this->_font5_terminus8);
fontCharsTree = &(this->_font5_terminus8)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -769,7 +769,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font5_terminus8)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font4_terminus)))->Font::Unload();
Font::Unload(&this->_font4_terminus);
fontCharsTree = &(this->_font4_terminus)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -777,7 +777,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font4_terminus)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font3_TeamMeatEx16)))->Font::Unload();
Font::Unload(&this->_font3_TeamMeatEx16);
fontCharsTree = &(this->_font3_TeamMeatEx16)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -785,7 +785,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font3_TeamMeatEx16)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font2_TeamMeatEx12)))->Font::Unload();
Font::Unload(&this->_font2_TeamMeatEx12);
fontCharsTree = &(this->_font2_TeamMeatEx12)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -793,7 +793,7 @@ void Manager::destructor()
(GHIDRA_INT((this->_font2_TeamMeatEx12)._charsBlock._head) + 4));
operator_delete(fontCharsTree->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font1_TeamMeatEx10)))->Font::Unload();
Font::Unload(&this->_font1_TeamMeatEx10);
fontCharsTree = &(this->_font1_TeamMeatEx10)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharsTree,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharsTree,
@@ -803,15 +803,15 @@ void Manager::destructor()
FUN_004b3950();
_eh_vector_destructor_iterator_(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4ae0c))),8,2,TexturePtr::release);
local_8 = 1;
(GHIDRA_CAST<ANM2 *>((&this->_platformIconsSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_platformIconsSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_platformIconsSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_platformIconsSprite);
AnimationState::~AnimationState(&(this->_platformIconsSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_platformIconsSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_platformIconsSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_platformIconsSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 2;
(GHIDRA_CAST<ANM2 *>((&this->_buttonsSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_buttonsSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_buttonsSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_buttonsSprite);
AnimationState::~AnimationState(&(this->_buttonsSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_buttonsSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_buttonsSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_buttonsSprite))))->msvc::string::_Tidy_deallocate();
msvc::vector<260byte>::~vector();
@@ -819,7 +819,7 @@ void Manager::destructor()
(this->_popupButtons)._callback = (void *)0x0;
(this->_popupButtons)._callbackContext = (void *)0x0;
_eh_vector_destructor_iterator_(&this->_popupButtons,0x130,2,FUN_008ba170);
(GHIDRA_CAST<StringTable *>((&this->_stringTablePc)))->StringTable::clear();
StringTable::clear(&this->_stringTablePc);
temp_27f248e98e1 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_stringTablePc))) + 0xc)));
msvc::map<StringTable_category>::_Erase_tree
(temp_27f248e98e1,*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_stringTablePc))) + 0xc)))) + 4)));
@@ -830,7 +830,7 @@ void Manager::destructor()
(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)temp_27f248e98e1,
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_stringTablePc))) + 0x4)))) + 4));
operator_delete(*(void **)temp_27f248e98e1,0x18);
(GHIDRA_CAST<StringTable *>((&this->_stringTable)))->StringTable::clear();
StringTable::clear(&this->_stringTable);
temp_27f248e98e1 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_stringTable))) + 0xc)));
msvc::map<StringTable_category>::_Erase_tree
(temp_27f248e98e1,*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_stringTable))) + 0xc)))) + 4)));
@@ -987,8 +987,8 @@ void Manager::load_fonts()
local_1c = ExceptionList;
local_24 = __security_cookie ^ GHIDRA_UINT((redirectedPathA + 0x11));
ExceptionList = &local_1c;
(GHIDRA_CAST<Font *>((&this->_font9_PFTempestaSevenCondensedAgain)))->Font::Unload();
(GHIDRA_CAST<Font *>((&this->_font7_Upheaval)))->Font::Unload();
Font::Unload(&this->_font9_PFTempestaSevenCondensedAgain);
Font::Unload(&this->_font7_Upheaval);
fallbackGlyph = *GHIDRA_CAST<int *>(&g_manager->_stringTable);
if (fallbackGlyph == 2) {
pcVar3 = "font/MPlus_12b.fnt";
@@ -1024,7 +1024,7 @@ LAB_009519b0:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX + 0x14))) {
pbVar2 = *GHIDRA_CAST<uint8_t **>(extraout_EAX);
}
(GHIDRA_CAST<Font *>((&this->_font7_Upheaval)))->Font::Load(pbVar2,0);
Font::Load(&this->_font7_Upheaval,pbVar2,0);
local_14 = (void *)((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(local_14))) + 0x1))) << 8);
if (0xf < redirectedPathACapacity) {
freeSize = redirectedPathACapacity + 1;
@@ -1072,7 +1072,7 @@ LAB_00951a98:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_00 + 0x14))) {
pbVar2 = *GHIDRA_CAST<uint8_t **>(extraout_EAX_00);
}
(GHIDRA_CAST<Font *>((&this->_font9_PFTempestaSevenCondensedAgain)))->Font::Load(pbVar2,0);
Font::Load(&this->_font9_PFTempestaSevenCondensedAgain,pbVar2,0);
local_14 = (void *)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),2);
if (0xf < redirectedPathBCapacity) {
freeSize = redirectedPathBCapacity + 1;
@@ -1115,7 +1115,7 @@ LAB_00951b8a:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_01 + 0x14))) {
pbVar2 = *GHIDRA_CAST<uint8_t **>(extraout_EAX_01);
}
(GHIDRA_CAST<Font *>((&this->_font1_TeamMeatEx10)))->Font::Load(pbVar2,0);
Font::Load(&this->_font1_TeamMeatEx10,pbVar2,0);
local_14 = (void *)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),4);
if (0xf < redirectedPathACapacity) {
freeSize = redirectedPathACapacity + 1;
@@ -1158,7 +1158,7 @@ LAB_00951c7b:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_02 + 0x14))) {
pbVar2 = *GHIDRA_CAST<uint8_t **>(extraout_EAX_02);
}
(GHIDRA_CAST<Font *>((&this->_font2_TeamMeatEx12)))->Font::Load(pbVar2,0);
Font::Load(&this->_font2_TeamMeatEx12,pbVar2,0);
local_14 = (void *)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
if (0xf < redirectedPathBCapacity) {
freeSize = redirectedPathBCapacity + 1;
@@ -1201,7 +1201,7 @@ LAB_00951d6c:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_03 + 0x14))) {
pbVar2 = *GHIDRA_CAST<uint8_t **>(extraout_EAX_03);
}
(GHIDRA_CAST<Font *>((&this->_font3_TeamMeatEx16)))->Font::Load(pbVar2,0);
Font::Load(&this->_font3_TeamMeatEx16,pbVar2,0);
if (0xf < redirectedPathACapacity) {
freeSize = redirectedPathACapacity + 1;
freeBlock = redirectedPathA[0];
@@ -1377,8 +1377,8 @@ void Manager::Init()
savedManager = g_manager;
stringTable = &g_manager->_stringTable;
g_manager->_isSavingGameState = 0;
(GHIDRA_CAST<StringTable *>((stringTable)))->StringTable::Load(GHIDRA_CAST<uint8_t *>("stringtable.sta"));
(GHIDRA_CAST<StringTable *>((&manager->_stringTablePc)))->StringTable::Load(GHIDRA_CAST<uint8_t *>("stringtable_pc.sta"));
StringTable::Load(stringTable,GHIDRA_CAST<uint8_t *>("stringtable.sta"));
StringTable::Load(&manager->_stringTablePc,GHIDRA_CAST<uint8_t *>("stringtable_pc.sta"));
validate_language(manager,unused);
manager->_selectedDifficulty = 0;
manager->_isWindowFocused = 1;
@@ -1475,8 +1475,8 @@ void Manager::Init()
}
manager = savedManager;
}
(GHIDRA_CAST<OptionsConfig *>((&manager->_optionsConfig)))->OptionsConfig::load_config_ini();
(GHIDRA_CAST<OptionsConfig *>((&manager->_optionsConfig)))->OptionsConfig::Load(optionsIniPath);
OptionsConfig::load_config_ini(&manager->_optionsConfig);
OptionsConfig::Load(&manager->_optionsConfig,optionsIniPath);
piVar4 = GHIDRA_CAST<int *>(SteamInternal_ContextInit(&PTR_FUN_00c5c3a4));
if ((*piVar4 == 0) || (iVar7 = extraout_ECX, (manager->_optionsConfig)._enableSteamCloud == 0)) {
KAGE_LogMessage(1,(uint8_t *)
@@ -1527,7 +1527,7 @@ void Manager::Init()
anm2Path._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/cursor.anm2",0x13);
local_8 = 2;
(GHIDRA_CAST<ANM2 *>((&manager->_cursorSprite)))->ANM2::Load(&anm2Path,1);
ANM2::Load(&manager->_cursorSprite,&anm2Path,1);
local_8 = 0xffffffff;
if (0xf < anm2Path._capacity) {
uVar6 = anm2Path._capacity + 1;
@@ -1545,9 +1545,9 @@ void Manager::Init()
pbVar3 = (manager->_cursorSprite)._animState._animData;
if (pbVar3 == GHIDRA_CAST<uint8_t *>(0x0)) {
LAB_00952994:
bVar1 = (GHIDRA_CAST<ANM2 *>((&manager->_cursorSprite)))->ANM2::SetAnimation(s_Idle,1);
bVar1 = ANM2::SetAnimation(&manager->_cursorSprite,s_Idle,1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((&(manager->_cursorSprite)._animState)))->AnimationState::Rewind();
AnimationState::Rewind(&(manager->_cursorSprite)._animState);
(manager->_cursorSprite)._animState._isPlaying = 1;
}
}
@@ -1606,7 +1606,7 @@ LAB_00952975:
anm2Path._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/Buttons.anm2",0x14);
local_8 = 3;
(GHIDRA_CAST<ANM2 *>((&manager->_buttonsSprite)))->ANM2::Load(&anm2Path,1);
ANM2::Load(&manager->_buttonsSprite,&anm2Path,1);
local_8 = 0xffffffff;
if (0xf < anm2Path._capacity) {
uVar6 = anm2Path._capacity + 1;
@@ -1632,7 +1632,7 @@ LAB_00952975:
anm2Path._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/ui/PlatformIcons.anm2",0x1a);
local_8 = 4;
(GHIDRA_CAST<ANM2 *>((&manager->_platformIconsSprite)))->ANM2::Load(&anm2Path,1);
ANM2::Load(&manager->_platformIconsSprite,&anm2Path,1);
local_8 = 0xffffffff;
if (0xf < anm2Path._capacity) {
uVar6 = anm2Path._capacity + 1;
@@ -1676,9 +1676,9 @@ LAB_00952c0a:
((pbVar3[0x34] == 0 || ((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(local_230) + 0x30)))->_isPlaying != 0))))
goto LAB_00952c36;
}
bVar1 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(local_230))))->ANM2::SetAnimation(&DAT_00b7b76c,1);
bVar1 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(local_230),&DAT_00b7b76c,1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(buttonsSprite) + 0x30)))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(buttonsSprite) + 0x30)));
(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(buttonsSprite) + 0x30)))->_isPlaying = 1;
}
LAB_00952c36:
@@ -2402,7 +2402,7 @@ LAB_00952ff1:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_19 + 0x14))) {
pathBytes = *GHIDRA_CAST<uint8_t **>(extraout_EAX_19);
}
(GHIDRA_CAST<Font *>((&itemConfig->_font4_terminus)))->Font::Load(pathBytes,0);
Font::Load(&itemConfig->_font4_terminus,pathBytes,0);
(GHIDRA_CAST<msvc::string *>((tmpPath._buf)))->msvc::string::_Tidy_deallocate();
local_14 = 0xffffffff;
if (0xf < fileName._capacity) {
@@ -2430,7 +2430,7 @@ LAB_00952ff1:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_20 + 0x14))) {
pathBytes = *GHIDRA_CAST<uint8_t **>(extraout_EAX_20);
}
(GHIDRA_CAST<Font *>((&itemConfig->_font5_terminus8)))->Font::Load(pathBytes,0);
Font::Load(&itemConfig->_font5_terminus8,pathBytes,0);
(GHIDRA_CAST<msvc::string *>((redirectedPath._buf)))->msvc::string::_Tidy_deallocate();
local_14 = 0xffffffff;
if (0xf < fileName._capacity) {
@@ -2458,7 +2458,7 @@ LAB_00952ff1:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_21 + 0x14))) {
pathBytes = *GHIDRA_CAST<uint8_t **>(extraout_EAX_21);
}
(GHIDRA_CAST<Font *>((&itemConfig->_font6_PFTempestaSevenCondensed)))->Font::Load(pathBytes,0);
Font::Load(&itemConfig->_font6_PFTempestaSevenCondensed,pathBytes,0);
(GHIDRA_CAST<msvc::string *>((tmpPath._buf)))->msvc::string::_Tidy_deallocate();
local_14 = 0xffffffff;
if (0xf < fileName._capacity) {
@@ -2486,7 +2486,7 @@ LAB_00952ff1:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_22 + 0x14))) {
pathBytes = *GHIDRA_CAST<uint8_t **>(extraout_EAX_22);
}
(GHIDRA_CAST<Font *>((&itemConfig->_font8_LuaMiniOutlined)))->Font::Load(pathBytes,0);
Font::Load(&itemConfig->_font8_LuaMiniOutlined,pathBytes,0);
(GHIDRA_CAST<msvc::string *>((fontPath._buf)))->msvc::string::_Tidy_deallocate();
local_14 = 0xffffffff;
if (0xf < fileName._capacity) {
@@ -2580,8 +2580,8 @@ void Manager::unload_configs()
*GHIDRA_CAST<uint64_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((manager->_nightmareScene))) + 0x38c)))) = 0x1100000011;
*GHIDRA_CAST<uint64_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((manager->_nightmareScene))) + 0x394)))) = 0x1100000011;
*GHIDRA_CAST<uint64_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((manager->_nightmareScene))) + 0x39c)))) = 0x1100000011;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((manager->_nightmareScene))) + 0x248)))))))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((manager)) + 0x219d0)))))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((manager->_nightmareScene))) + 0x248)))));
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((manager)) + 0x219d0)))));
ItemConfig::clear();
(GHIDRA_CAST<ItemConfig *>((&manager->_itemConfig)))->ItemConfig::reset();
challengeParams = &manager->_challengeParams;
@@ -2615,11 +2615,11 @@ void Manager::unload_configs()
}
}
FUN_0069bbf0();
(GHIDRA_CAST<Font *>((&manager->_font5_terminus8)))->Font::Unload();
(GHIDRA_CAST<Font *>((&manager->_font6_PFTempestaSevenCondensed)))->Font::Unload();
(GHIDRA_CAST<Font *>((&manager->_font7_Upheaval)))->Font::Unload();
(GHIDRA_CAST<Font *>((&manager->_font8_LuaMiniOutlined)))->Font::Unload();
(GHIDRA_CAST<Font *>((&manager->_font9_PFTempestaSevenCondensedAgain)))->Font::Unload();
Font::Unload(&manager->_font5_terminus8);
Font::Unload(&manager->_font6_PFTempestaSevenCondensed);
Font::Unload(&manager->_font7_Upheaval);
Font::Unload(&manager->_font8_LuaMiniOutlined);
Font::Unload(&manager->_font9_PFTempestaSevenCondensedAgain);
load_configs(manager);
return;
}
@@ -2908,11 +2908,11 @@ LAB_0095497c:
}
local_40 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_40)) + 0x1))),bVar2);
if (bVar2 != (this->_optionsConfig)._isFullscreen) {
(GHIDRA_CAST<OptionsConfig *>((&this->_optionsConfig)))->OptionsConfig::set_fullscreen(bVar2);
OptionsConfig::set_fullscreen(&this->_optionsConfig,bVar2);
}
bVar2 = input_is_action_triggered(g_manager,0x10,-1,GHIDRA_CAST<Entity *>(0x0),0);
if (bVar2 != 0) {
(GHIDRA_CAST<OptionsConfig *>((&this->_optionsConfig)))->OptionsConfig::set_fullscreen((this->_optionsConfig)._isFullscreen == 0);
OptionsConfig::set_fullscreen(&this->_optionsConfig,(this->_optionsConfig)._isFullscreen == 0);
}
LAB_009549c7:
local_40 = 0x156;
@@ -3331,7 +3331,7 @@ switchD_0095519c_caseD_4:
if (iVar8 == 0) {
anim = GHIDRA_CAST<char *>(s_Idle);
}
(GHIDRA_CAST<ANM2 *>((&pMVar4->_cursorSprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(anim),0);
ANM2::Play(&pMVar4->_cursorSprite,GHIDRA_CAST<uint8_t *>(anim),0);
pvVar2 = g_glfwWindow;
if (g_glfwWindow == (void *)0x0) {
_wassert(L"window != NULL",
@@ -3610,16 +3610,16 @@ LAB_00955727:
achievementSprite = &(temp_3f5a48c29e->_achievementOverlay)._sprite;
scratchVec.y = g_screenHeight * 0.5 * 1.75;
scratchVec.x = g_screenWidth * 0.5 * 0.25;
overlayLayer = (GHIDRA_CAST<ANM2 *>((achievementSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer = ANM2::GetLayer(achievementSprite,GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer->_minFilterMode = 1;
overlayLayer = (GHIDRA_CAST<ANM2 *>((achievementSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer = ANM2::GetLayer(achievementSprite,GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer->_magFilterMode = 1;
}
else {
achievementSprite = &(temp_3f5a48c29e->_achievementOverlay)._sprite;
overlayLayer = (GHIDRA_CAST<ANM2 *>((achievementSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer = ANM2::GetLayer(achievementSprite,GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer->_minFilterMode = 0;
overlayLayer = (GHIDRA_CAST<ANM2 *>((achievementSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer = ANM2::GetLayer(achievementSprite,GHIDRA_CAST<uint8_t *>(0x3));
overlayLayer->_magFilterMode = 0;
}
if ((temp_3f5a48c29e->_achievementOverlay)._sprite._loaded != 0) {
@@ -3655,7 +3655,7 @@ LAB_00955727:
scratchVec.y = (local_40 / (float)((double)iVar8 + __uint_to_double_fixup[-(iVar8 >> 0x1f)]))
* (temp_3f5a48c29e->_lastMousePosition).y;
scratchVec.x = cursorScaleX * (temp_3f5a48c29e->_lastMousePosition).x;
(GHIDRA_CAST<ANM2 *>((&temp_3f5a48c29e->_cursorSprite)))->ANM2::Render(&scratchVec,&g_vectorZero,&g_vectorZero);
ANM2::Render(&temp_3f5a48c29e->_cursorSprite,&scratchVec,&g_vectorZero,&g_vectorZero);
iVar8 = extraout_ECX_10;
}
}
@@ -3704,7 +3704,7 @@ LAB_00955727:
if (0xf < *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((temp_3f5a48c29e)) + 0x4a6f0))))) {
text = *GHIDRA_CAST<uint8_t **>(text);
}
(GHIDRA_CAST<Font *>((&pMVar1->_font2_TeamMeatEx12)))->Font::DrawString(text,color,&local_5c,g_screenWidth * 0.5,
Font::DrawString(&pMVar1->_font2_TeamMeatEx12,text,color,&local_5c,g_screenWidth * 0.5,
g_screenHeight * 0.5 + 80.0);
local_14 = 0xffffffff;
iVar8 = extraout_ECX_09;
@@ -3972,7 +3972,7 @@ void Manager::StartNewGame(int playerType, int challenge, Seeds unk, int difficu
(manager->_dailyChallenge)._seed = 0;
(manager->_dailyChallenge)._specialDailyId = 0;
(manager->_dailyChallenge)._isPractice = 0;
(GHIDRA_CAST<ChallengeParam *>((&(manager->_dailyChallenge)._params)))->ChallengeParam::Reset();
ChallengeParam::Reset(&(manager->_dailyChallenge)._params);
manager->_starting = 1;
manager->_networkPlay = 0;
manager->_consecutiveResetCount = 0;
@@ -4700,7 +4700,7 @@ void Manager::render_button_sprite(int frame, Vector position)
(g_manager->_buttonsSprite)._scale.x = g_vectorOne.x;
(manager->_buttonsSprite)._scale.y = fVar1;
if ((manager->_buttonsSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((&(manager->_buttonsSprite)._animState)))->AnimationState::SetFrameFloat((float)frame);
AnimationState::SetFrameFloat(&(manager->_buttonsSprite)._animState,(float)frame);
}
if ((manager->_buttonsSprite)._loaded != 0) {
if ((manager->_buttonsSprite)._overlayRenderFirst == 0) {