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

+154 -154
View File
@@ -23,19 +23,19 @@ void HUD::constructor()
ExceptionList = &local_10;
_eh_vector_constructor_iterator_(this,0x6dc,8,FUN_006efc70,FUN_006efde0);
local_8 = 0;
(GHIDRA_CAST<Font *>((&this->_font)))->Font::Font();
Font::Font(&this->_font);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
(GHIDRA_CAST<Font *>((&this->_fontKR)))->Font::Font();
Font::Font(&this->_fontKR);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 2;
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::constructor();
ANM2::constructor(&this->_chargeBarSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 3;
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSmallSprite)))->ANM2::constructor();
ANM2::constructor(&this->_chargeBarSmallSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
(GHIDRA_CAST<ANM2 *>((&this->_heartsSprite)))->ANM2::constructor();
ANM2::constructor(&this->_heartsSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 5;
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::constructor();
ANM2::constructor(&this->_pickupHUDSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
(GHIDRA_CAST<ANM2 *>((&this->_cardsPillsSprite)))->ANM2::constructor();
ANM2::constructor(&this->_cardsPillsSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
FUN_008405b0();
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 8;
@@ -45,11 +45,11 @@ void HUD::constructor()
_eh_vector_constructor_iterator_(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a88))),500,4,FUN_008405b0,HUD_Message::~HUD_Message)
;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 10;
(GHIDRA_CAST<ANM2 *>((&this->_fortuneSprite)))->ANM2::constructor();
ANM2::constructor(&this->_fortuneSprite);
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x536c)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5370)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xc;
(GHIDRA_CAST<ANM2 *>((&this->_statsSprite)))->ANM2::constructor();
ANM2::constructor(&this->_statsSprite);
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5488)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x548c)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54a0)))) = 0;
@@ -63,13 +63,13 @@ void HUD::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54c4)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54c8)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x13;
(GHIDRA_CAST<ANM2 *>((&this->_coopMenuSprite)))->ANM2::constructor();
ANM2::constructor(&this->_coopMenuSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x14;
(GHIDRA_CAST<ANM2 *>((&this->_inventorySprite)))->ANM2::constructor();
ANM2::constructor(&this->_inventorySprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x15;
(GHIDRA_CAST<ANM2 *>((&this->_craftingTableSprite)))->ANM2::constructor();
ANM2::constructor(&this->_craftingTableSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x16;
(GHIDRA_CAST<ANM2 *>((&this->_poopSpellsSprite)))->ANM2::constructor();
ANM2::constructor(&this->_poopSpellsSprite);
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x592c)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5930)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x18;
@@ -91,7 +91,7 @@ void HUD::constructor()
} while (remaining != 0);
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x59a0)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x599c)))) = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&this->_statHUD))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&this->_statHUD));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x19;
cursor = GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5ab8))));
remaining = 2;
@@ -120,13 +120,13 @@ void HUD::constructor()
this[1]._playerHUD[0x36] = 0;
this[1]._playerHUD[0x37] = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x1d;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this[1]._playerHUD + 0x38)))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>((this[1]._playerHUD + 0x38)));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x1e;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this[1]._playerHUD + 0x14c)))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>((this[1]._playerHUD + 0x14c)));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x1f;
SharedPtrPair::constructor();
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x20;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this[1]._playerHUD + 0x28c)))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>((this[1]._playerHUD + 0x28c)));
this[1]._playerHUD[0x3a0] = 0xff;
this[1]._playerHUD[0x3a1] = 0xff;
this[1]._playerHUD[0x3a2] = 0xff;
@@ -154,7 +154,7 @@ void HUD::constructor()
this[1]._playerHUD[0x3c3] = 0;
*pbVar1 = 0;
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x22);
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>((this[1]._playerHUD + 0x3c4)))))->Font::Font();
Font::Font(GHIDRA_CAST<Font *>((this[1]._playerHUD + 0x3c4)));
this[1]._playerHUD[0x410] = 0;
this[1]._playerHUD[0x411] = 0;
this[1]._playerHUD[0x412] = 0;
@@ -184,9 +184,9 @@ void HUD::destructor()
local_8 = 0;
_eh_vector_destructor_iterator_(&this->_historyHUD,0x14,2,GHIDRA_CAST<_func_void_void_ptr *>(&LAB_006f3050));
local_8 = 1;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&this->_statHUD))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x59f4)))))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x59d4)))))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&this->_statHUD));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x59f4)))));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x59d4)))));
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x59bc))))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_statHUD))))->msvc::string::_Tidy_deallocate();
local_8 = 2;
@@ -197,27 +197,27 @@ void HUD::destructor()
}
}
local_8 = 3;
(GHIDRA_CAST<ANM2 *>((&this->_poopSpellsSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_poopSpellsSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_poopSpellsSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_poopSpellsSprite);
AnimationState::~AnimationState(&(this->_poopSpellsSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_poopSpellsSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_poopSpellsSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_poopSpellsSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 4;
(GHIDRA_CAST<ANM2 *>((&this->_craftingTableSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_craftingTableSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_craftingTableSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_craftingTableSprite);
AnimationState::~AnimationState(&(this->_craftingTableSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_craftingTableSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_craftingTableSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_craftingTableSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 5;
(GHIDRA_CAST<ANM2 *>((&this->_inventorySprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_inventorySprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_inventorySprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_inventorySprite);
AnimationState::~AnimationState(&(this->_inventorySprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_inventorySprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_inventorySprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_inventorySprite))))->msvc::string::_Tidy_deallocate();
local_8 = 6;
(GHIDRA_CAST<ANM2 *>((&this->_coopMenuSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_coopMenuSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_coopMenuSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_coopMenuSprite);
AnimationState::~AnimationState(&(this->_coopMenuSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_coopMenuSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_coopMenuSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_coopMenuSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 7;
@@ -263,9 +263,9 @@ void HUD::destructor()
}
}
local_8 = 0xd;
(GHIDRA_CAST<ANM2 *>((&this->_statsSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_statsSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_statsSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_statsSprite);
AnimationState::~AnimationState(&(this->_statsSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_statsSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_statsSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_statsSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0xe;
@@ -276,9 +276,9 @@ void HUD::destructor()
}
}
local_8 = 0xf;
(GHIDRA_CAST<ANM2 *>((&this->_fortuneSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_fortuneSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_fortuneSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_fortuneSprite);
AnimationState::~AnimationState(&(this->_fortuneSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_fortuneSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_fortuneSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_fortuneSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0xffffffff;
@@ -286,44 +286,44 @@ void HUD::destructor()
_eh_vector_destructor_iterator_(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3ed0))),500,6,HUD_Message::~HUD_Message);
(GHIDRA_CAST<HUD_Message *>((GHIDRA_CAST<HUD_Message *>(&this->_messageMain))))->HUD_Message::~HUD_Message();
local_8 = 0x10;
(GHIDRA_CAST<ANM2 *>((&this->_cardsPillsSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_cardsPillsSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_cardsPillsSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_cardsPillsSprite);
AnimationState::~AnimationState(&(this->_cardsPillsSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_cardsPillsSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_cardsPillsSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_cardsPillsSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0x11;
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_pickupHUDSprite);
AnimationState::~AnimationState(&(this->_pickupHUDSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_pickupHUDSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_pickupHUDSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_pickupHUDSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0x12;
(GHIDRA_CAST<ANM2 *>((&this->_heartsSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_heartsSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_heartsSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_heartsSprite);
AnimationState::~AnimationState(&(this->_heartsSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_heartsSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_heartsSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_heartsSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0x13;
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSmallSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_chargeBarSmallSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_chargeBarSmallSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_chargeBarSmallSprite);
AnimationState::~AnimationState(&(this->_chargeBarSmallSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_chargeBarSmallSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_chargeBarSmallSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_chargeBarSmallSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0x14;
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((&(this->_chargeBarSprite)._overlayAnimState)))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((&(this->_chargeBarSprite)._animState)))->AnimationState::~AnimationState();
ANM2::Reset(&this->_chargeBarSprite);
AnimationState::~AnimationState(&(this->_chargeBarSprite)._overlayAnimState);
AnimationState::~AnimationState(&(this->_chargeBarSprite)._animState);
(GHIDRA_CAST<msvc::string *>(((this->_chargeBarSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_chargeBarSprite))))->msvc::string::_Tidy_deallocate();
local_8 = 0xffffffff;
(GHIDRA_CAST<Font *>((&this->_fontKR)))->Font::Unload();
Font::Unload(&this->_fontKR);
fontCharMap = &(this->_fontKR)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharMap,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharMap,
*(_Tree_node<unsigned_int,void*> **)(GHIDRA_INT((this->_fontKR)._charsBlock._head) + 4));
operator_delete(fontCharMap->_head,0x18);
FUN_004b3950();
(GHIDRA_CAST<Font *>((&this->_font)))->Font::Unload();
Font::Unload(&this->_font);
fontCharMap = &(this->_font)._charsBlock;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(fontCharMap,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)fontCharMap,
@@ -1139,7 +1139,7 @@ void HUD::load_item_info_graphics()
resourcePath._capacity = 0x2f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(resourcePath._buf))) + 0x0))),"font/TeamMeatEx/TeamMeatEx12.fnt",0x21);
local_14 = 0;
(GHIDRA_CAST<RichText *>((this->_playerHUD + 900)))->RichText::load_font(&resourcePath);
RichText::load_font(this->_playerHUD + 900,&resourcePath);
local_14 = 0xffffffff;
if (0xf < resourcePath._capacity) {
uVar3 = resourcePath._capacity + 1;
@@ -1158,7 +1158,7 @@ void HUD::load_item_info_graphics()
this->_playerHUD[0x3ed] = 0x66;
this->_playerHUD[0x3ee] = 0x66;
this->_playerHUD[0x3ef] = 0x3f;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)));
chargeIconsPath._size = 0;
chargeIconsPath._capacity = 0xf;
chargeIconsPath._buf[0] = '\0';
@@ -1170,7 +1170,7 @@ void HUD::load_item_info_graphics()
chargeIconsPath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(chargeIconsPath._buf))) + 0x0))),"gfx/ui/ui_charge_icons.anm2",0x1c);
local_14 = 1;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x124)))))->ANM2::Load(&chargeIconsPath,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x124)),&chargeIconsPath,1);
local_14 = 0xffffffff;
if (0xf < chargeIconsPath._capacity) {
uVar3 = chargeIconsPath._capacity + 1;
@@ -1212,9 +1212,9 @@ LAB_0083c7c5:
if ((uVar3 == 0) && ((currentAnim[0x34] == 0 || (this->_playerHUD[0x168] != 0))))
goto LAB_0083c7f1;
}
bVar1 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x124)))))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("ChargeIcon"),1);
bVar1 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x124)),GHIDRA_CAST<uint8_t *>("ChargeIcon"),1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this->_playerHUD + 0x154)))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((this->_playerHUD + 0x154)));
this->_playerHUD[0x168] = 1;
}
LAB_0083c7f1:
@@ -1233,7 +1233,7 @@ LAB_0083c7f1:
resourcePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(resourcePath._buf))) + 0x0))),"gfx/ui/minimap_icons.anm2",0x1a);
local_14 = 2;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x264)))))->ANM2::Load(&resourcePath,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x264)),&resourcePath,1);
if (0xf < resourcePath._capacity) {
uVar3 = resourcePath._capacity + 1;
pcVar2 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(resourcePath._buf))) + 0x0)));
@@ -1382,7 +1382,7 @@ void HUD::update_item_info()
pickupVariant = *GHIDRA_CAST<int *>((iVar2 + 0x2c));
if (pickupVariant == 100) {
LAB_0083ca27:
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((iVar2 + 0x48)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((iVar2 + 0x48)),GHIDRA_CAST<uint8_t *>(0x1));
tmpCStr = &layer->_spriteSheetPath;
if (0xf < (layer->_spriteSheetPath)._capacity) {
tmpCStr = *GHIDRA_CAST<std_string **>(tmpCStr->_buf);
@@ -1465,7 +1465,7 @@ LAB_0083ced0:
}
LAB_0083cfa5:
(GHIDRA_CAST<KAGE::SmartPointer *>((this->_playerHUD + 8)))->KAGE::SmartPointer::reset((void *)0x0);
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)));
pHVar13 = extraout_ECX_01;
}
else if (iVar7 == 0x15e) {
@@ -1488,7 +1488,7 @@ LAB_0083cf7d:
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x0))) = 0xff;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x1))) = 0xffffff;
TexturePtr::release();
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)));
pHVar13 = extraout_ECX_00;
}
else if (iVar7 == 0x46) {
@@ -1502,7 +1502,7 @@ LAB_0083cf7d:
*GHIDRA_CAST<int *>((local_e0->_playerHUD + 0x30)));
if (entityConfig == GHIDRA_CAST<EntityConfig_Entity *>(0x0)) {
LAB_0083d11f:
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)));
}
else {
tmpCStr = &entityConfig->anm2Path;
@@ -1512,7 +1512,7 @@ LAB_0083d11f:
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>(tmpCStr));
ehState = (void *)0x7;
LAB_0083d02f:
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)),&tmpString,1);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x0))) = 0xff;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x1))) = 0xffffff;
if (0xf < tmpString._capacity) {
@@ -1528,7 +1528,7 @@ LAB_0083d02f:
}
operator_delete(pvVar8,uVar6);
}
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)))))->ANM2::Play(s_Idle,0);
ANM2::Play(GHIDRA_CAST<ANM2 *>((this->_playerHUD + 0x10)),s_Idle,0);
}
(GHIDRA_CAST<KAGE::SmartPointer *>((this->_playerHUD + 8)))->KAGE::SmartPointer::reset((void *)0x0);
pHVar13 = extraout_ECX_03;
@@ -2297,9 +2297,9 @@ LAB_008f8fd5:
if ((uVar5 == 0) && ((animData[0x34] == 0 || ((portrait->_animState)._isPlaying != 0))))
goto LAB_008f9000;
}
bVar4 = (GHIDRA_CAST<ANM2 *>((portrait)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(animName),1);
bVar4 = ANM2::SetAnimation(portrait,GHIDRA_CAST<uint8_t *>(animName),1);
if (bVar4 != 0) {
(GHIDRA_CAST<AnimationState *>((&portrait->_animState)))->AnimationState::Rewind();
AnimationState::Rewind(&portrait->_animState);
(portrait->_animState)._isPlaying = 1;
}
LAB_008f9000:
@@ -2343,7 +2343,7 @@ LAB_008f9000:
(portrait->_color)._offset[2] = color->_offset[2];
portrait = playerConfig->_moddedCoopMenuANM2;
}
(GHIDRA_CAST<ANM2 *>((portrait)))->ANM2::Render(position,&g_vectorZero,&g_vectorZero);
ANM2::Render(portrait,position,&g_vectorZero,&g_vectorZero);
ExceptionList = local_1c;
return;
}
@@ -2407,7 +2407,7 @@ void HUD::LoadGraphics()
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX + 0x14))) {
redirectedPathChars = *GHIDRA_CAST<uint8_t **>(extraout_EAX);
}
(GHIDRA_CAST<Font *>((&this->_font)))->Font::Load(redirectedPathChars,0);
Font::Load(&this->_font,redirectedPathChars,0);
local_14 = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(local_14))) + 0x1))) << 8;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2450,7 +2450,7 @@ LAB_009a1b64:
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_00 + 0x14))) {
redirectedPathChars = *GHIDRA_CAST<uint8_t **>(extraout_EAX_00);
}
(GHIDRA_CAST<Font *>((&this->_fontKR)))->Font::Load(redirectedPathChars,0);
Font::Load(&this->_fontKR,redirectedPathChars,0);
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),2);
if (0xf < redirectedFontPathCapacity) {
allocatedBytes = redirectedFontPathCapacity + 1;
@@ -2491,7 +2491,7 @@ LAB_009a1c55:
tmpPathCapacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpPath))) + 0x0))),"gfx/ui/ui_hearts.anm2",0x16);
local_14 = 4;
(GHIDRA_CAST<ANM2 *>((&this->_heartsSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_heartsSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2517,7 +2517,7 @@ LAB_009a1c55:
tmpPathCapacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpPath))) + 0x0))),"gfx/ui/hudpickups.anm2",0x17);
local_14 = 5;
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_pickupHUDSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2543,7 +2543,7 @@ LAB_009a1c55:
tmpPathCapacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpPath))) + 0x0))),"gfx/ui/ui_chargebar.anm2",0x19);
local_14 = 6;
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_chargeBarSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2569,7 +2569,7 @@ LAB_009a1c55:
tmpPathCapacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpPath))) + 0x0))),"gfx/ui/ui_chargebar_small.anm2",0x1f);
local_14 = 7;
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSmallSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_chargeBarSmallSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2595,7 +2595,7 @@ LAB_009a1c55:
tmpPathCapacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpPath))) + 0x0))),"gfx/ui/ui_cardspills.anm2",0x1a);
local_14 = 8;
(GHIDRA_CAST<ANM2 *>((&this->_cardsPillsSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_cardsPillsSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2621,7 +2621,7 @@ LAB_009a1c55:
tmpPathCapacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpPath))) + 0x0))),"gfx/ui/hudstats.anm2",0x15);
local_14 = 9;
(GHIDRA_CAST<ANM2 *>((&this->_statsSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_statsSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2722,7 +2722,7 @@ LAB_009a1c55:
tmpPathCapacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpPath))) + 0x0))),"gfx/ui/ui_FortunePaper.anm2",0x1c);
local_14 = 0x14;
(GHIDRA_CAST<ANM2 *>((&this->_fortuneSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_fortuneSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2742,7 +2742,7 @@ LAB_009a1c55:
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpPath)) + 0x0))) = (void *)0x0;
(GHIDRA_CAST<msvc::string *>((tmpPath)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/ui/coop menu.anm2"),0x15);
local_14 = 0x15;
(GHIDRA_CAST<ANM2 *>((&this->_coopMenuSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_coopMenuSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2757,14 +2757,14 @@ LAB_009a1c55:
}
operator_delete(pvVar1,allocatedBytes);
}
(GHIDRA_CAST<ANM2 *>((&this->_coopMenuSprite)))->ANM2::Play(&DAT_00b6767c,0);
(GHIDRA_CAST<ANM2 *>((&this->_coopMenuSprite)))->ANM2::PlayOverlay(GHIDRA_CAST<uint8_t *>("Arrows"),0);
ANM2::Play(&this->_coopMenuSprite,&DAT_00b6767c,0);
ANM2::PlayOverlay(&this->_coopMenuSprite,GHIDRA_CAST<uint8_t *>("Arrows"),0);
tmpPathSize = 0;
tmpPathCapacity = 0xf;
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpPath)) + 0x0))) = (void *)0x0;
(GHIDRA_CAST<msvc::string *>((tmpPath)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/ui/ui_inventory.anm2"),0x18);
local_14 = 0x16;
(GHIDRA_CAST<ANM2 *>((&this->_inventorySprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_inventorySprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2779,13 +2779,13 @@ LAB_009a1c55:
}
operator_delete(pvVar1,allocatedBytes);
}
(GHIDRA_CAST<ANM2 *>((&this->_inventorySprite)))->ANM2::Play(s_Idle,0);
ANM2::Play(&this->_inventorySprite,s_Idle,0);
tmpPathSize = 0;
tmpPathCapacity = 0xf;
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpPath)) + 0x0))) = (void *)0x0;
(GHIDRA_CAST<msvc::string *>((tmpPath)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/ui/ui_crafting.anm2"),0x17);
local_14 = 0x17;
(GHIDRA_CAST<ANM2 *>((&this->_craftingTableSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_craftingTableSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2800,13 +2800,13 @@ LAB_009a1c55:
}
operator_delete(pvVar1,allocatedBytes);
}
(GHIDRA_CAST<ANM2 *>((&this->_craftingTableSprite)))->ANM2::Play(s_Idle,0);
ANM2::Play(&this->_craftingTableSprite,s_Idle,0);
tmpPathSize = 0;
tmpPathCapacity = 0xf;
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpPath)) + 0x0))) = (void *)0x0;
(GHIDRA_CAST<msvc::string *>((tmpPath)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/ui/ui_poops.anm2"),0x14);
local_14 = 0x18;
(GHIDRA_CAST<ANM2 *>((&this->_poopSpellsSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>(tmpPath),1);
ANM2::Load(&this->_poopSpellsSprite,GHIDRA_CAST<std_string *>(tmpPath),1);
local_14 = 0xffffffff;
if (0xf < tmpPathCapacity) {
allocatedBytes = tmpPathCapacity + 1;
@@ -2821,7 +2821,7 @@ LAB_009a1c55:
}
operator_delete(pvVar1,allocatedBytes);
}
(GHIDRA_CAST<ANM2 *>((&this->_poopSpellsSprite)))->ANM2::Play(s_Idle,0);
ANM2::Play(&this->_poopSpellsSprite,s_Idle,0);
HUD_Message::load_graphics();
remaining = 6;
do {
@@ -2880,7 +2880,7 @@ LAB_009a1c55:
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(path._buf)) + 0x0))) = GHIDRA_CAST<char *>(0x0);
(GHIDRA_CAST<msvc::string *>((path._buf)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/ui/hudstats2.anm2"),0x15);
local_14 = 0x1f;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&self->_statHUD))))->ANM2::Load(&path,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&self->_statHUD),&path,1);
local_14 = 0xffffffff;
if (0xf < path._capacity) {
allocatedBytes = path._capacity + 1;
@@ -2898,9 +2898,9 @@ LAB_009a1c55:
path._size = 0;
path._capacity = 0xf;
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(path._buf)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(path._buf)) + 0x0))) & 0xffffff00;
isAnimSet = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&self->_statHUD))))->ANM2::SetAnimation(s_Idle,1);
isAnimSet = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&self->_statHUD),s_Idle,1);
if ((isAnimSet != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x59d8)))) != 0)) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x59d4)))))))->AnimationState::SetFrameFloat(0.0);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x59d4)))),0.0);
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x59d8)))) != 0) {
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x59e8))) = 0;
}
@@ -2922,33 +2922,33 @@ void HUD::unload_graphics()
HUD *playerHUD;
int remaining;
(GHIDRA_CAST<Font *>((&this->_font)))->Font::Unload();
(GHIDRA_CAST<Font *>((&this->_fontKR)))->Font::Unload();
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSmallSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_heartsSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_statsSprite)))->ANM2::Reset();
Font::Unload(&this->_font);
Font::Unload(&this->_fontKR);
ANM2::Reset(&this->_chargeBarSprite);
ANM2::Reset(&this->_chargeBarSmallSprite);
ANM2::Reset(&this->_heartsSprite);
ANM2::Reset(&this->_pickupHUDSprite);
ANM2::Reset(&this->_statsSprite);
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54a0))))))->KAGE::SmartPointer::reset((void *)0x0);
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54a8))))))->KAGE::SmartPointer::reset((void *)0x0);
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54b0))))))->KAGE::SmartPointer::reset((void *)0x0);
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54bc))))))->KAGE::SmartPointer::reset((void *)0x0);
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x54c4))))))->KAGE::SmartPointer::reset((void *)0x0);
(GHIDRA_CAST<ANM2 *>((&this->_cardsPillsSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_fortuneSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_inventorySprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_craftingTableSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_poopSpellsSprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&this->_coopMenuSprite)))->ANM2::Reset();
ANM2::Reset(&this->_cardsPillsSprite);
ANM2::Reset(&this->_fortuneSprite);
ANM2::Reset(&this->_inventorySprite);
ANM2::Reset(&this->_craftingTableSprite);
ANM2::Reset(&this->_poopSpellsSprite);
ANM2::Reset(&this->_coopMenuSprite);
(GHIDRA_CAST<HUD_Message *>((GHIDRA_CAST<HUD_Message *>(&this->_messageMain))))->HUD_Message::free_text_buffers();
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3cfc)))))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3cfc)))));
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3ce4))) = 0;
messageSlot = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3ee8)));
remaining = 6;
do {
(GHIDRA_CAST<HUD_Message *>((GHIDRA_CAST<HUD_Message *>((messageSlot + -0x18)))))->HUD_Message::free_text_buffers();
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((messageSlot + 8)))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((messageSlot + 8)));
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX_00);
messageSlot[-0x10] = 0;
messageSlot = messageSlot + 500;
@@ -2958,7 +2958,7 @@ void HUD::unload_graphics()
remaining = 4;
do {
(GHIDRA_CAST<HUD_Message *>((GHIDRA_CAST<HUD_Message *>((messageSlot + -0x18)))))->HUD_Message::free_text_buffers();
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((messageSlot + 8)))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((messageSlot + 8)));
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX_01);
messageSlot[-0x10] = 0;
messageSlot = messageSlot + 500;
@@ -3016,16 +3016,16 @@ void HUD::Update()
} while (remaining != 0);
fortuneAnimState = &(this->_fortuneSprite)._animState;
if ((this->_fortuneSprite)._loaded != 0) {
(GHIDRA_CAST<AnimationState *>((fortuneAnimState)))->AnimationState::Update();
(GHIDRA_CAST<AnimationState *>((&(this->_fortuneSprite)._overlayAnimState)))->AnimationState::Update();
AnimationState::Update(fortuneAnimState);
AnimationState::Update(&(this->_fortuneSprite)._overlayAnimState);
}
if ((this->_fortuneSprite)._animState._animData == (void *)0x0) goto LAB_009a2b1a;
isEventTriggered = (GHIDRA_CAST<AnimationState *>((fortuneAnimState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("SlideIn"));
isEventTriggered = AnimationState::IsEventTriggered(fortuneAnimState,GHIDRA_CAST<uint8_t *>("SlideIn"));
manager = g_manager;
if (isEventTriggered == 0) {
LAB_009a2aae:
if ((this->_fortuneSprite)._animState._animData == (void *)0x0) goto LAB_009a2b1a;
isEventTriggered = (GHIDRA_CAST<AnimationState *>((fortuneAnimState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("SlideOut"));
isEventTriggered = AnimationState::IsEventTriggered(fortuneAnimState,GHIDRA_CAST<uint8_t *>("SlideOut"));
manager = g_manager;
if (((isEventTriggered == 0) || ((this->_fortuneSprite)._animState._animData == (void *)0x0)) ||
((this->_fortuneSprite)._animState._isPlaying == 0)) goto LAB_009a2b1a;
@@ -3510,14 +3510,14 @@ void HUD::ShowItemText(Entity_Player *player, ItemConfig_Item *item)
(GHIDRA_CAST<HUD_Message *>((hudMessage)))->HUD_Message::set_text_line(GHIDRA_CAST<short *>(pIVar8),1);
}
*GHIDRA_CAST<uint16_t *>((hudMessage + 3)) = 1;
bVar5 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[10])) + 0x2)))))))->ANM2::SetAnimation(&DAT_00b1c208,1);
bVar5 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[10])) + 0x2)))),&DAT_00b1c208,1);
if (bVar5 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[0x1a])) + 0x2)))))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[0x1a])) + 0x2)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[0x21])) + 0x1))) = 1;
pIVar8 = local_c0;
}
local_b9 = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[3])) + 0x1)));
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[10])) + 0x2)))))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[10])) + 0x2)))),GHIDRA_CAST<uint8_t *>(0x1));
layer->_visible = local_b9;
(GHIDRA_CAST<HUD_Message *>((hudMessage)))->HUD_Message::UpdateTextImage();
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(hudMessage[2])) + 0x2))) = 1;
@@ -3765,7 +3765,7 @@ void HUD::show_fortune_text_impl(uint8_t *text)
if (iVar4 != 0) {
lastSpace = cursor;
}
iVar4 = (GHIDRA_CAST<Font *>((font)))->Font::get_string_width_utf16(GHIDRA_CAST<short *>(&charBuffer),-1);
iVar4 = Font::get_string_width_utf16(font,GHIDRA_CAST<short *>(&charBuffer),-1);
local_144 = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(local_144) + iVar4));
if (0x10e < local_144) {
lineEnd = cursor;
@@ -3864,9 +3864,9 @@ void HUD::render_fortune_text(void *lines)
iVar2 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(lines) + 4));
hud = this;
if (iVar2 == 0) {
isAnimChanged = (GHIDRA_CAST<ANM2 *>((&this->_fortuneSprite)))->ANM2::SetAnimation(&DAT_00b1c208,1);
isAnimChanged = ANM2::SetAnimation(&this->_fortuneSprite,&DAT_00b1c208,1);
if (isAnimChanged != 0) {
(GHIDRA_CAST<AnimationState *>((&(this->_fortuneSprite)._animState)))->AnimationState::Rewind();
AnimationState::Rewind(&(this->_fortuneSprite)._animState);
(this->_fortuneSprite)._animState._isPlaying = 1;
}
local_2c.x = 0.0;
@@ -3899,7 +3899,7 @@ void HUD::render_fortune_text(void *lines)
if (0xf < GHIDRA_UINT(piVar3[7])) {
lineText = *GHIDRA_CAST<uint8_t **>(lineText);
}
lineWidth = (GHIDRA_CAST<Font *>((font)))->Font::get_string_width_n(lineText,-1);
lineWidth = Font::get_string_width_n(font,lineText,-1);
maxWidth = prevMaxWidth;
if (prevMaxWidth < lineWidth) {
maxWidth = lineWidth;
@@ -3928,9 +3928,9 @@ void HUD::render_fortune_text(void *lines)
else {
anim = "Text3";
}
isAnimChanged = (GHIDRA_CAST<ANM2 *>((&hud->_fortuneSprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(anim),1);
isAnimChanged = ANM2::SetAnimation(&hud->_fortuneSprite,GHIDRA_CAST<uint8_t *>(anim),1);
if (isAnimChanged != 0) {
(GHIDRA_CAST<AnimationState *>((&(pHVar1->_fortuneSprite)._animState)))->AnimationState::Rewind();
AnimationState::Rewind(&(pHVar1->_fortuneSprite)._animState);
(pHVar1->_fortuneSprite)._animState._isPlaying = 1;
}
local_2c.x = 0.0;
@@ -3970,7 +3970,7 @@ void HUD::render_fortune_text(void *lines)
if (0xf < GHIDRA_UINT(lineNode[7])) {
lineText = *GHIDRA_CAST<uint8_t **>(lineText);
}
glyphs = (GHIDRA_CAST<Font *>((font)))->Font::measure_string(glyphBuffer,lineText,&drawSettings,&local_2c);
glyphs = Font::measure_string(font,glyphBuffer,lineText,&drawSettings,&local_2c);
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),1);
color._alpha = 1.0;
color._red = 0.0;
@@ -4308,12 +4308,12 @@ void HUD::Render()
(*drawQuadFn)(quadBuffer,extraout_ECX);
sprintf_s(ambushText,8,GHIDRA_CAST<uint8_t *>("%d/%d"));
temp_3fc998231f = g_manager;
(GHIDRA_CAST<FontSettings *>((GHIDRA_CAST<FontSettings *>((local_70 + 0x10)))))->FontSettings::constructor();
FontSettings::constructor(GHIDRA_CAST<FontSettings *>((local_70 + 0x10)));
ehState = 0;
(GHIDRA_CAST<KColor *>((&local_120)))->KColor::SetFromARGB(0xffffffff);
iVar4 = Font::get_string_width_n
(&temp_3fc998231f->_font6_PFTempestaSevenCondensed,ambushText,-1);
(GHIDRA_CAST<Font *>((&temp_3fc998231f->_font6_PFTempestaSevenCondensed)))->Font::DrawString(ambushText,&local_120,
Font::DrawString(&temp_3fc998231f->_font6_PFTempestaSevenCondensed,ambushText,&local_120,
settings,((float)local_ac + 53.0) -
(float)((double)iVar4 + __uint_to_double_fixup[-(iVar4 >> 0x1f)]),
(float)local_7c + 7.0);
@@ -4360,9 +4360,9 @@ void HUD::Render()
((local_ac != GHIDRA_CAST<Entity_Player *>(0x0) && (local_7e == 0)))) {
local_7c = GHIDRA_CAST<Entity_Player *>(0x41300000);
}
bVar3 = (GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::SetAnimation(s_Idle,1);
bVar3 = ANM2::SetAnimation(&this->_pickupHUDSprite,s_Idle,1);
if (((bVar3 != 0) && ((this->_pickupHUDSprite)._animState._animData != (void *)0x0)) &&
((GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::SetFrameFloat(0.0),
(AnimationState::SetFrameFloat(&(this->_pickupHUDSprite)._animState,0.0),
(this->_pickupHUDSprite)._animState._animData != (void *)0x0)) {
(this->_pickupHUDSprite)._animState._isPlaying = 0;
}
@@ -4403,7 +4403,7 @@ void HUD::Render()
(GHIDRA_CAST<KColor *>((&local_120)))->KColor::SetFromARGB(0xffffffff);
VVar2.y = local_74 + 1.0;
VVar2.x = local_78 + 16.0;
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,VVar2,(Vector)0x3f8000003f800000,color,
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,VVar2,(Vector)0x3f8000003f800000,color,
GHIDRA_CAST<FontSettings *>(&drawSettingsAlt));
ehState = 0xffffffff;
cursorPos.x = local_78 - local_90;
@@ -4419,14 +4419,14 @@ void HUD::Render()
else if ((this->_pickupHUDSprite)._animState._animData != (void *)0x0) {
fVar10 = 6.0;
LAB_009a4737:
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::SetFrameFloat(fVar10);
AnimationState::SetFrameFloat(&(this->_pickupHUDSprite)._animState,fVar10);
}
}
else if ((this->_pickupHUDSprite)._animState._animData != (void *)0x0) {
fVar10 = 14.0;
goto LAB_009a4737;
}
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Render(&cursorPos,&g_vectorZero,&g_vectorZero);
ANM2::Render(&this->_pickupHUDSprite,&cursorPos,&g_vectorZero,&g_vectorZero);
local_78 = local_90 + cursorPos.x;
local_74 = local_94 + cursorPos.y;
sprintf_s(&DAT_00c94328,0x10,&DAT_00b7ddac);
@@ -4441,7 +4441,7 @@ LAB_009a4737:
(GHIDRA_CAST<KColor *>((&local_120)))->KColor::SetFromARGB(0xffffffff);
pos.y = local_74 + 1.0;
pos.x = local_78 + 16.0;
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,pos,(Vector)0x3f8000003f800000,color_00,
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,pos,(Vector)0x3f8000003f800000,color_00,
GHIDRA_CAST<FontSettings *>(&drawSettingsAlt));
cursorPos.x = local_78 - local_90;
cursorPos.y = (local_74 - local_94) + (float)local_7c;
@@ -4449,9 +4449,9 @@ LAB_009a4737:
ehState = 0xffffffff;
if (local_ac != GHIDRA_CAST<Entity_Player *>(0x0)) {
if ((this->_pickupHUDSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::SetFrameFloat(16.0);
AnimationState::SetFrameFloat(&(this->_pickupHUDSprite)._animState,16.0);
}
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Render(&cursorPos,&g_vectorZero,&g_vectorZero);
ANM2::Render(&this->_pickupHUDSprite,&cursorPos,&g_vectorZero,&g_vectorZero);
local_78 = local_90 + cursorPos.x;
local_74 = local_94 + cursorPos.y;
pEVar5 = (GHIDRA_CAST<PlayerManager *>((&g_game->_playerManager)))->PlayerManager::FirstBirthrightOwner(0x19);
@@ -4471,7 +4471,7 @@ LAB_009a4737:
(GHIDRA_CAST<KColor *>((&local_120)))->KColor::SetFromARGB(0xffffffff);
pos_00.y = local_74 + 1.0;
pos_00.x = local_78 + 16.0;
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,pos_00,(Vector)0x3f8000003f800000,color_01,
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,pos_00,(Vector)0x3f8000003f800000,color_01,
GHIDRA_CAST<FontSettings *>(&drawSettingsAlt));
cursorPos.x = local_78 - local_90;
cursorPos.y = (local_74 - local_94) + (float)local_7c;
@@ -4485,7 +4485,7 @@ LAB_009a4737:
else {
fVar10 = 3.0;
}
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::SetFrameFloat(fVar10);
AnimationState::SetFrameFloat(&(this->_pickupHUDSprite)._animState,fVar10);
}
if ((this->_pickupHUDSprite)._loaded != 0) {
if ((this->_pickupHUDSprite)._overlayRenderFirst == 0) {
@@ -4514,7 +4514,7 @@ LAB_009a4737:
(GHIDRA_CAST<KColor *>((&local_120)))->KColor::SetFromARGB(0xffffffff);
pos_01.y = local_74 + 1.0;
pos_01.x = local_78 + 16.0;
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,pos_01,(Vector)0x3f8000003f800000,color_02,
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,pos_01,(Vector)0x3f8000003f800000,color_02,
GHIDRA_CAST<FontSettings *>(&drawSettingsAlt));
ehState = 0xffffffff;
cursorPos.x = local_78 - local_90;
@@ -4523,9 +4523,9 @@ LAB_009a4737:
if (local_b8 != GHIDRA_CAST<Entity_Player *>(0x0)) {
cursorPos.y = local_74 + (float)local_7c;
if ((this->_pickupHUDSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((secondAnimState)))->AnimationState::SetFrameFloat(15.0);
AnimationState::SetFrameFloat(secondAnimState,15.0);
}
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Render(&cursorPos,&g_vectorZero,&g_vectorZero);
ANM2::Render(&this->_pickupHUDSprite,&cursorPos,&g_vectorZero,&g_vectorZero);
local_78 = local_90 + cursorPos.x;
local_74 = local_94 + cursorPos.y;
sprintf_s(&DAT_00c94328,0x10,&DAT_00b7ddac);
@@ -4540,7 +4540,7 @@ LAB_009a4737:
(GHIDRA_CAST<KColor *>((&local_40)))->KColor::SetFromARGB(0xffffffff);
pos_02.y = local_74 + 1.0;
pos_02.x = local_78 + 16.0;
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,pos_02,(Vector)0x3f8000003f800000,color_03,
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,pos_02,(Vector)0x3f8000003f800000,color_03,
GHIDRA_CAST<FontSettings *>(&drawSettingsAlt));
local_78 = local_78 - local_90;
local_74 = local_74 - local_94;
@@ -4550,9 +4550,9 @@ LAB_009a4737:
cursorPos.y = (float)local_7c + local_74;
cursorPos.x = local_78;
if ((this->_pickupHUDSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((secondAnimState)))->AnimationState::SetFrameFloat(12.0);
AnimationState::SetFrameFloat(secondAnimState,12.0);
}
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Render(&cursorPos,&g_vectorZero,&g_vectorZero);
ANM2::Render(&this->_pickupHUDSprite,&cursorPos,&g_vectorZero,&g_vectorZero);
local_78 = local_90 + cursorPos.x;
local_74 = local_94 + cursorPos.y;
sprintf_s(&DAT_00c94328,0x10,&DAT_00b7ddac);
@@ -4567,7 +4567,7 @@ LAB_009a4737:
(GHIDRA_CAST<KColor *>((&local_e8)))->KColor::SetFromARGB(0xffffffff);
pos_03.y = local_74 + 1.0;
pos_03.x = local_78 + 16.0;
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,pos_03,(Vector)0x3f8000003f800000,color_04,
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,pos_03,(Vector)0x3f8000003f800000,color_04,
GHIDRA_CAST<FontSettings *>(&drawSettings));
local_78 = local_78 - local_90;
local_74 = local_74 - local_94;
@@ -4717,9 +4717,9 @@ LAB_009a5258:
if (local_7e == '\0') {
if (0 < g_game->_victoryLap) {
if ((this->_pickupHUDSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::SetFrameFloat(10.0);
AnimationState::SetFrameFloat(&(this->_pickupHUDSprite)._animState,10.0);
}
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Render(&cursorPos,&g_vectorZero,&g_vectorZero);
ANM2::Render(&this->_pickupHUDSprite,&cursorPos,&g_vectorZero,&g_vectorZero);
local_74 = local_94 + cursorPos.y;
sprintf_s(&DAT_00c94328,0x10,s__d);
drawSettings = 0;
@@ -4731,7 +4731,7 @@ LAB_009a5258:
local_f4 = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x0))) = 0xb;
(GHIDRA_CAST<KColor *>((&local_120)))->KColor::SetFromARGB(0xffffffff);
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,color_08,&drawSettings,
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,color_08,&drawSettings,
local_90 + cursorPos.x + 18.0,local_74);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x0))) = 7;
fVar10 = local_74 - local_94;
@@ -4743,9 +4743,9 @@ LAB_009a5258:
pbVar6 = (this->_pickupHUDSprite)._animState._animData;
if (pbVar6 == GHIDRA_CAST<uint8_t *>(0x0)) {
LAB_009a54b9:
bVar3 = (GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Destination"),1);
bVar3 = ANM2::SetAnimation(&this->_pickupHUDSprite,GHIDRA_CAST<uint8_t *>("Destination"),1);
if (bVar3 != 0) {
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::Rewind();
AnimationState::Rewind(&(this->_pickupHUDSprite)._animState);
(this->_pickupHUDSprite)._animState._isPlaying = 1;
}
}
@@ -4827,11 +4827,11 @@ LAB_009a55b0:
else if ((this->_pickupHUDSprite)._animState._animData != (void *)0x0) {
fVar10 = 6.0;
LAB_009a55b3:
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::SetFrameFloat(fVar10);
AnimationState::SetFrameFloat(&(this->_pickupHUDSprite)._animState,fVar10);
}
local_a8.y = (float)local_b8 + local_74;
local_a8.x = (float)local_7c + local_78;
(GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::Render(&local_a8,&g_vectorZero,&g_vectorZero);
ANM2::Render(&this->_pickupHUDSprite,&local_a8,&g_vectorZero,&g_vectorZero);
pbVar6 = (this->_pickupHUDSprite)._animState._animData;
if (pbVar6 != GHIDRA_CAST<uint8_t *>(0x0)) {
animNameCursor = pbVar6;
@@ -4860,9 +4860,9 @@ LAB_009a563c:
((pbVar6[0x34] == 0 || ((this->_pickupHUDSprite)._animState._isPlaying != 0))))
goto LAB_009a565b;
}
bVar3 = (GHIDRA_CAST<ANM2 *>((&this->_pickupHUDSprite)))->ANM2::SetAnimation(s_Idle,1);
bVar3 = ANM2::SetAnimation(&this->_pickupHUDSprite,s_Idle,1);
if (bVar3 != 0) {
(GHIDRA_CAST<AnimationState *>((&(this->_pickupHUDSprite)._animState)))->AnimationState::Rewind();
AnimationState::Rewind(&(this->_pickupHUDSprite)._animState);
(this->_pickupHUDSprite)._animState._isPlaying = 1;
}
}
@@ -4884,7 +4884,7 @@ LAB_009a5404:
local_108 = 0xffff;
drawSettings = 0;
(GHIDRA_CAST<KColor *>((&local_120)))->KColor::SetFromARGB(0xffffffff);
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_8c))))->Font::DrawString(&DAT_00c94328,color_07,&drawSettings,local_90 + 4.0,local_74);
Font::DrawString(GHIDRA_CAST<Font *>(local_8c),&DAT_00c94328,color_07,&drawSettings,local_90 + 4.0,local_74);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x0))) = 7;
}
else if (isInClearedGreedBossRoom != '\0') {
@@ -5076,7 +5076,7 @@ LAB_009a5af4:
}
pos_04.y = fVar10 - 14.0;
pos_04.x = local_128.x;
(GHIDRA_CAST<Font *>((&temp_3fc998231f->_font1_TeamMeatEx10)))->Font::DrawString(GHIDRA_CAST<uint8_t *>(statusTextBuf),pos_04,
Font::DrawString(&temp_3fc998231f->_font1_TeamMeatEx10,GHIDRA_CAST<uint8_t *>(statusTextBuf),pos_04,
(Vector)0x3f8000003f800000,color_05,GHIDRA_CAST<FontSettings *>(&drawSettings));
local_7c = GHIDRA_CAST<Entity_Player *>((GHIDRA_INT(local_7c) + 1));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(ehState)) + 0x0))) = 0xf;
@@ -5562,7 +5562,7 @@ LAB_009a6c87:
nullFrame = GHIDRA_CAST<float *>(0x0);
}
else {
nullFrame = (GHIDRA_CAST<AnimationState *>((&(pHVar7->_fortuneSprite)._animState)))->AnimationState::GetNullFrameById(0);
nullFrame = AnimationState::GetNullFrameById(&(pHVar7->_fortuneSprite)._animState,0);
pHVar7 = hud;
}
color._unk = 0;
@@ -5914,7 +5914,7 @@ void HUD::render_boss_health_bar(Vector barPos)
(GHIDRA_CAST<KColor *>((&whiteColor)))->KColor::SetFromARGB(0xffffffff);
iVar4 = Font::get_string_width_n
(&pMVar2->_font6_PFTempestaSevenCondensed,GHIDRA_CAST<uint8_t *>(&local_1c),-1);
(GHIDRA_CAST<Font *>((&pMVar2->_font6_PFTempestaSevenCondensed)))->Font::DrawString(GHIDRA_CAST<uint8_t *>(&local_1c),&whiteColor,
Font::DrawString(&pMVar2->_font6_PFTempestaSevenCondensed,GHIDRA_CAST<uint8_t *>(&local_1c),&whiteColor,
&fontSettings,
(barPos.x + 48.0) -
(float)((double)iVar4 + __uint_to_double_fixup[-(iVar4 >> 0x1f)]),