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

+54 -54
View File
@@ -52,7 +52,7 @@ void Backdrop::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x11])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x12])) + 0x2)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>((this + 0x14)));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
_eh_vector_constructor_iterator_
(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x71])) + 0x1))),0x13c,0x3f,BackdropConfig::constructor,
@@ -65,11 +65,11 @@ void Backdrop::constructor()
*GHIDRA_CAST<uint64_t *>((this + 0x1a64)) = 0x900000005;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a62])) + 0x2)))) = 0xaa17414f;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a66])) + 0x2)))) = 7;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))));
(*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[0x1ac5])) + 0x1)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 10;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
(GHIDRA_CAST<KColor *>((&clearColorValue)))->KColor::SetFromARGB(0);
renderTarget = KAGE_Graphics::create_render_target
@@ -154,29 +154,29 @@ void Backdrop::destructor()
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX_00);
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2))))))->KAGE::SmartPointer::reset((void *)0x0);
local_8 = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1b3c)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x1b3c)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))));
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b29])) + 0x1))))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1))))))->msvc::string::_Tidy_deallocate();
local_8 = 1;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1ae0)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad5])) + 0x1)))))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x1ae0)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad5])) + 0x1)))));
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1acd])) + 0x1))))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1))))))->msvc::string::_Tidy_deallocate();
local_8 = 2;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1a84)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a79])) + 0x1)))))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x1a84)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a79])) + 0x1)))));
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a71])) + 0x1))))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1))))))->msvc::string::_Tidy_deallocate();
local_8 = 0xffffffff;
_eh_vector_destructor_iterator_(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x71])) + 0x1))),0x13c,0x3f,BackdropConfig::~BackdropConfig);
local_8 = 3;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2e])) + 0x2)))))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x24)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this + 0x14)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2e])) + 0x2)))));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x24)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((this + 0x1c)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((this + 0x14)))))->msvc::string::_Tidy_deallocate();
local_8 = 4;
@@ -2058,7 +2058,7 @@ void Backdrop::PreRenderControls()
playerType = *GHIDRA_CAST<int *>((glyphCount + 0x13c0));
}
if (playerType < 0x29) {
isAnimChanged = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Controls"),1);
isAnimChanged = ANM2::SetAnimation(sprite,GHIDRA_CAST<uint8_t *>("Controls"),1);
if ((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad6])) + 0x2)))) != 0)) {
frame = (float)playerType;
goto LAB_0093493f;
@@ -2076,9 +2076,9 @@ void Backdrop::PreRenderControls()
if (0xf < anim->_capacity) {
anim = *GHIDRA_CAST<std_string **>(anim->_buf);
}
isAnimChanged = (GHIDRA_CAST<ANM2 *>((this_00)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(anim),1);
isAnimChanged = ANM2::SetAnimation(this_00,GHIDRA_CAST<uint8_t *>(anim),1);
if (((isAnimChanged != 0) && ((this_00->_animState)._animData != (void *)0x0)) &&
((GHIDRA_CAST<AnimationState *>((&this_00->_animState)))->AnimationState::SetFrameFloat(0.0),
(AnimationState::SetFrameFloat(&this_00->_animState,0.0),
(this_00->_animState)._animData != (void *)0x0)) {
(this_00->_animState)._isPlaying = 0;
}
@@ -2107,12 +2107,12 @@ LAB_009348c4:
}
}
sprite = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)));
isAnimChanged = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Controls"),1);
isAnimChanged = ANM2::SetAnimation(sprite,GHIDRA_CAST<uint8_t *>("Controls"),1);
if ((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad6])) + 0x2)))) != 0)) {
frame = 0.0;
LAB_0093493f:
sprite = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)));
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad5])) + 0x1)))))))->AnimationState::SetFrameFloat(frame);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad5])) + 0x1)))),frame);
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad6])) + 0x2)))) != 0) {
*GHIDRA_CAST<uint8_t *>((this + 0x1adc)) = 0;
}
@@ -2177,9 +2177,9 @@ LAB_00934952:
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
LAB_00934aa5:
if (controllerIndex == 0) {
isAnimChanged = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))))))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Keyboard"),1);
isAnimChanged = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))),GHIDRA_CAST<uint8_t *>("Keyboard"),1);
if (((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) &&
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))))))->AnimationState::SetFrameFloat(0.0),
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))),0.0),
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) {
*GHIDRA_CAST<uint8_t *>((this + 0x1b38)) = 0;
}
@@ -2221,9 +2221,9 @@ LAB_00934aa5:
ExceptionList = local_1c;
return;
}
isAnimChanged = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))))))->ANM2::SetAnimation(&DAT_00b7b76c,1);
isAnimChanged = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))),&DAT_00b7b76c,1);
if (((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) &&
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))))))->AnimationState::SetFrameFloat(0.0),
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))),0.0),
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) {
*GHIDRA_CAST<uint8_t *>((this + 0x1b38)) = 0;
}
@@ -2251,7 +2251,7 @@ LAB_00934be2:
do {
uVar4 = rowOffset;
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(sprite) + 0x34)) != 0) {
nullFrame = (GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(sprite) + 0x30)))))->AnimationState::GetNullFrameById(row);
nullFrame = AnimationState::GetNullFrameById(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(sprite) + 0x30)),row);
if ((nullFrame != GHIDRA_CAST<float *>(0x0)) && (*GHIDRA_CAST<char *>((nullFrame + 3)) != '\0')) {
framesBegin = (void *)0x0;
framesEnd = 0;
@@ -4325,8 +4325,8 @@ void Backdrop::load_details()
stackCookie = __security_cookie ^ GHIDRA_UINT((imageRef + 100));
ExceptionList = &local_1c;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2))) = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this + 0x14)));
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))));
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b1d])) + 0x2))) == '\0') {
tmpString._size = 0;
tmpString._capacity = 0xf;
@@ -4339,7 +4339,7 @@ void Backdrop::load_details()
tmpString._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/controls.anm2",0x1b);
local_14 = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))),&tmpString,1);
local_14 = 0xffffffff;
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4367,7 +4367,7 @@ void Backdrop::load_details()
tmpString._capacity = 0x2f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/controls_buttons.anm2",0x23);
local_14 = 1;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))),&tmpString,1);
local_14 = 0xffffffff;
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4410,7 +4410,7 @@ void Backdrop::load_details()
} while (strChar != 0);
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::assign(pbVar3,GHIDRA_INT(pbVar4) - GHIDRA_INT((pbVar3 + 1)));
local_14 = 2;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
local_14 = 0xffffffff;
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4466,9 +4466,9 @@ void Backdrop::load_details()
g_graphicsManager_blendMode[2] = iVar2;
if (pbVar3 == GHIDRA_CAST<uint8_t *>(0x0)) {
LAB_0093e5fc:
strChar = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::SetAnimation(s_Idle2,1);
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this + 0x14)),s_Idle2,1);
if (strChar != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x24)))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((this + 0x24)));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) = 1;
}
}
@@ -4501,7 +4501,7 @@ LAB_0093e5e9:
g_graphicsManager_flags = g_graphicsManager_flags & 0xfffffffd;
local_80.y = DAT_00c35e74 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2))));
local_80.x = DAT_00c35e70 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1))));
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Render(&local_80,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>((this + 0x14)),&local_80,&g_vectorZero,&g_vectorZero);
g_graphicsManager_flags = g_graphicsManager_flags | 2;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x0))) = tmpString._buf[4];
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x1))) = tmpString._buf[5];
@@ -4545,9 +4545,9 @@ LAB_0093e6e7:
if ((uVar6 == 0) && ((pbVar3[0x34] == 0 || ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) != '\0'))))
goto LAB_0093e713;
}
strChar = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::SetAnimation(&DAT_00b601c4,1);
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this + 0x14)),&DAT_00b601c4,1);
if (strChar != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x24)))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((this + 0x24)));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) = 1;
}
goto LAB_0093e713;
@@ -4559,7 +4559,7 @@ LAB_0093e6e7:
}
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(pbVar3);
local_14 = 3;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
local_14 = 0xffffffff;
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4574,9 +4574,9 @@ LAB_0093e6e7:
}
operator_delete(freeBlock,uVar6);
}
strChar = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::SetAnimation(s_Idle,1);
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this + 0x14)),s_Idle,1);
if (((strChar != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1)))) != 0)) &&
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x24)))))->AnimationState::SetFrameFloat(0.0),
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>((this + 0x24)),0.0),
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1)))) != 0)) {
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) = 0;
}
@@ -4592,7 +4592,7 @@ LAB_0093e6e7:
do {
pbVar4 = pbVar3 + 1;
isLayerVisible = pbVar4 == local_70;
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::GetLayer(pbVar3);
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((this + 0x14)),pbVar3);
layer->_visible = isLayerVisible;
pbVar3 = pbVar4;
} while (pbVar4 < *GHIDRA_CAST<uint8_t **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x3e])) + 0x2)))));
@@ -4606,7 +4606,7 @@ LAB_0093e6e7:
}
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(pbVar3);
local_14 = 4;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
local_14 = 0xffffffff;
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4624,7 +4624,7 @@ LAB_0093e6e7:
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) & 0xffffff00;
iVar7 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x10)) + 0x10)) + -10;
LAB_0093ddb8:
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::SetFrame(GHIDRA_CAST<std_string *>(s_Idle),iVar7);
ANM2::SetFrame(GHIDRA_CAST<ANM2 *>((this + 0x14)),GHIDRA_CAST<std_string *>(s_Idle),iVar7);
g_graphicsManager_flags = g_graphicsManager_flags & 0xfffffffd;
render_ashpit_ash();
g_graphicsManager_flags = g_graphicsManager_flags | 2;
@@ -4637,7 +4637,7 @@ LAB_0093ddb8:
}
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(pbVar3);
local_14 = 5;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
local_14 = 0xffffffff;
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4725,7 +4725,7 @@ LAB_0093df32:
tmpString._capacity = 0x2f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/01x_downpour_pipes.anm2",0x25);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xb;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4796,7 +4796,7 @@ LAB_0093e065:
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
}
tmpString._capacity = 0x2f;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4842,7 +4842,7 @@ LAB_0093e16c:
case 0x2a:
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/backdrop/05x_mausoleum_chains.anm2"));
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),0x10);
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
detailsPath = &tmpString;
goto LAB_0093e391;
case 0x2e:
@@ -4850,7 +4850,7 @@ LAB_0093e16c:
if (((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4)) + 0x44)) >> 9 & 1) == 0) && (iVar7 != 0x3b)) {
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/backdrop/04x_ashpit_details.anm2"));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xf;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::_Tidy_deallocate();
}
@@ -4867,7 +4867,7 @@ LAB_0093e16c:
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/04x_ashpit_details_dark.anm2",0x2a)
;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xe;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Load(&tmpString,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
if (0xf < tmpString._capacity) {
uVar6 = tmpString._capacity + 1;
@@ -4885,7 +4885,7 @@ LAB_0093e16c:
case 0x2f:
(GHIDRA_CAST<msvc::string *>((gehennaPath._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/backdrop/06x_gehenna_details.anm2"));
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),0x11);
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::Load(&gehennaPath,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&gehennaPath,1);
detailsPath = &gehennaPath;
LAB_0093e391:
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
@@ -4894,9 +4894,9 @@ LAB_0093e3a0:
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->Sprite::Play(GHIDRA_CAST<std_string *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a71])) + 0x1)))),0);
goto switchD_0093df66_caseD_21;
}
strChar = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->ANM2::SetAnimation(local_70,1);
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),local_70,1);
if (strChar != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a79])) + 0x1)))))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a79])) + 0x1)))));
*GHIDRA_CAST<uint8_t *>((this + 0x1a80)) = 1;
}
switchD_0093df66_caseD_21:
@@ -5124,7 +5124,7 @@ void Backdrop::RenderFloor(Vector *param_1, ColorMod param_2)
if (backdropType != 0x12) {
if (backdropType == 0x23) {
DAT_00c33910 = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)))))->ANM2::Render(param_1,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)),param_1,&g_vectorZero,&g_vectorZero);
DAT_00c33910 = 1;
unused = extraout_ECX_02;
}
@@ -5207,7 +5207,7 @@ LAB_0093eca7:
}
local_134.x = param_1->x + (float)in_ECX[0x13c6] + DAT_00c35e70;
local_134.y = param_1->y + (float)in_ECX[0x13c7] + DAT_00c35e74;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)))))->ANM2::Render(&local_134,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)),&local_134,&g_vectorZero,&g_vectorZero);
unused = extraout_ECX_01;
}
DAT_00c33910 = 1;
@@ -5427,7 +5427,7 @@ void Backdrop::RenderWalls(Vector *renderOffset, ColorMod color)
}
if (iVar3 == 0x23) {
DAT_00c33910 = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x14)))))->ANM2::Render(renderOffset,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>((this + 0x14)),renderOffset,&g_vectorZero,&g_vectorZero);
DAT_00c33910 = 1;
return;
}