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

+100 -99
View File
@@ -573,18 +573,18 @@ void Game::Update(Vector *param_2)
if ((char)this->_stage != '\0') {
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10))) != '\0') {
if (this->_stageType == 0x15) goto LAB_0043061e;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(this->_roomList))))->ANM2::Render(param_2,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>(this->_roomList),param_2,&g_vectorZero,&g_vectorZero);
}
if (this->_stageType == 0x15) {
LAB_0043061e:
manager = g_manager;
textPos.x = param_2->x - 12.0;
textPos.y = param_2->y + 0.0;
(GHIDRA_CAST<FontSettings *>((fontSettings)))->FontSettings::constructor();
FontSettings::constructor(fontSettings);
if (extraout_EDX < 0x14) {
local_8 = 0;
(GHIDRA_CAST<KColor *>((&textColor)))->KColor::SetFromARGB(0xffffffff);
(GHIDRA_CAST<Font *>((&manager->_font2_TeamMeatEx12)))->Font::DrawStringScaled(&DAT_00b1cebc,&textPos,color,settings);
Font::DrawStringScaled(&manager->_font2_TeamMeatEx12,&DAT_00b1cebc,&textPos,color,settings);
ExceptionList = local_10;
return;
}
@@ -598,12 +598,12 @@ LAB_0043061e:
}
local_8 = 2;
(GHIDRA_CAST<KColor *>((&textColor)))->KColor::SetFromARGB(0xffffffff);
(GHIDRA_CAST<Font *>((&manager->_font2_TeamMeatEx12)))->Font::DrawStringScaled(&DAT_00b1cec0,&textPos,color_01,settings)
Font::DrawStringScaled(&manager->_font2_TeamMeatEx12,&DAT_00b1cec0,&textPos,color_01,settings)
;
ExceptionList = local_10;
return;
}
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&this->_roomList[1].SpawnSeed))))->ANM2::Render(param_2,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>(&this->_roomList[1].SpawnSeed),param_2,&g_vectorZero,&g_vectorZero);
}
ExceptionList = local_10;
return;
@@ -946,7 +946,7 @@ void Game::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_roomTransition))) + 0x30)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_roomTransition))) + 0x34)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
(GHIDRA_CAST<ANM2 *>((&(this->_roomTransition)._versusScreenSprite)))->ANM2::constructor();
ANM2::constructor(&(this->_roomTransition)._versusScreenSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xd;
FUN_0040d170();
FUN_0040d170();
@@ -1017,23 +1017,23 @@ void Game::constructor()
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1c030))) = 0;
init_coop_awards(&this->_onlinePlayerStats);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x15;
(GHIDRA_CAST<ANM2 *>((&(this->_itemOverlay)._sprite)))->ANM2::constructor();
ANM2::constructor(&(this->_itemOverlay)._sprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x16;
_eh_vector_constructor_iterator_
(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_itemOverlay))) + 0x11c))),0x58,0x30,GHIDRA_CAST<_func_void_void_ptr *>(&LAB_009abcf0),
FUN_009abd50);
(this->_itemOverlay)._player = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x18;
(GHIDRA_CAST<ANM2 *>((&(this->_itemOverlay)._megaMushPlayerSprite)))->ANM2::constructor();
ANM2::constructor(&(this->_itemOverlay)._megaMushPlayerSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x19;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1d2f4)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1d2f4)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1a;
_eh_vector_constructor_iterator_
(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1d408))),0x38,5,GHIDRA_CAST<_func_void_void_ptr *>(&LAB_00420aa0),FUN_00420b00);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x1b;
*GHIDRA_CAST<uint32_t *>(&this->_gameOver) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_gameOver))) + 0x4)))) = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_gameOver))) + 0x8)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_gameOver))) + 0x8)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1d63c))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1d640)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1d644)))) = 0;
@@ -1050,9 +1050,9 @@ void Game::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x24ed0)))) = 0xffffffff;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x24ed4)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x24ed8)))) = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x24edc)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x24edc)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x20;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x24ff0)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x24ff0)))));
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x25104)))) = 0x3f400000;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x21;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x25108))) = 0;
@@ -1074,7 +1074,7 @@ void Game::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x25950)))) = 0x428c0000;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x25;
*GHIDRA_CAST<uint8_t *>(&this->_onlineStatsScreen) = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_onlineStatsScreen))) + 0x4)))))))->ANM2::constructor();
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_onlineStatsScreen))) + 0x4)))));
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x26;
_eh_vector_constructor_iterator_
(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_onlineStatsScreen))) + 0x118))),0x114,4,ANM2::constructor,ANM2::~ANM2);
@@ -1086,11 +1086,11 @@ void Game::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_minimap))) + 0x10)))) = 0;
_eh_vector_constructor_iterator_((this->_minimap)._config,0x160,2,FUN_0098b0a0,FUN_0098b130);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x28;
(GHIDRA_CAST<ANM2 *>((&(this->_minimap)._itemIconsSprite)))->ANM2::constructor();
ANM2::constructor(&(this->_minimap)._itemIconsSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x29;
(GHIDRA_CAST<ANM2 *>((&(this->_minimap)._hudPickupSprite)))->ANM2::constructor();
ANM2::constructor(&(this->_minimap)._hudPickupSprite);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x2a;
(GHIDRA_CAST<ANM2 *>((&(this->_minimap)._iconsSprite)))->ANM2::constructor();
ANM2::constructor(&(this->_minimap)._iconsSprite);
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_minimap))) + 0x614)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_minimap))) + 0x618)))) = 0;
(this->_minimap)._shakeOffset.y = 0.0;
@@ -1143,10 +1143,10 @@ void Game::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);
(GHIDRA_CAST<ScoreSheet *>((GHIDRA_CAST<ScoreSheet *>(&this->_scoreSheet))))->ScoreSheet::ScoreSheet();
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x30;
(GHIDRA_CAST<ANM2 *>((&(this->_genericPrompt)._sprite)))->ANM2::constructor();
ANM2::constructor(&(this->_genericPrompt)._sprite);
(this->_genericPrompt)._isOnlineVote = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_genericPrompt))) + 0x114)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_genericPrompt))) + 0x118)))) = 0;
@@ -1154,7 +1154,7 @@ void Game::constructor()
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_genericPrompt))) + 0x120)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_genericPrompt))) + 0x124)))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x31;
(GHIDRA_CAST<ANM2 *>((&this->_completionWidgetSprite)))->ANM2::constructor();
ANM2::constructor(&this->_completionWidgetSprite);
this->_encounteredBosses[0] = 0;
this->_encounteredBosses[1] = 0;
this->_encounteredBosses[2] = 0;
@@ -1422,15 +1422,15 @@ Game::~Game()
((void *)(in_ECX + 0x269ec),0x20660,2,GHIDRA_CAST<_func_void_void_ptr *>(&LAB_006f2990));
msvc::vector<Vector>::_Tidy();
local_8 = 0xc;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0x268ac)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x268fc)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x268dc)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((in_ECX + 0x268ac)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x268fc)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x268dc)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x268c4)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x268ac)))))->msvc::string::_Tidy_deallocate();
local_8 = 0xd;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0x26778)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x267c8)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x267a8)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((in_ECX + 0x26778)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x267c8)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x267a8)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x26790)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x26778)))))->msvc::string::_Tidy_deallocate();
msvc::vector<12byte>::_Tidy();
@@ -1468,17 +1468,17 @@ Game::~Game()
(GHIDRA_CAST<Leaderboard *>((GHIDRA_CAST<Leaderboard *>((in_ECX + 0x1d650)))))->Leaderboard::~Leaderboard();
msvc::vector<56byte_string>::_Tidy();
local_8 = 0x10;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0x1d528)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d578)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d558)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((in_ECX + 0x1d528)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d578)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d558)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x1d540)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x1d528)))))->msvc::string::_Tidy_deallocate();
local_8 = 0x11;
_eh_vector_destructor_iterator_((void *)(in_ECX + 0x1d408),0x38,5,FUN_00420b00);
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x12);
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0x1d2f4)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d344)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d324)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((in_ECX + 0x1d2f4)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d344)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((in_ECX + 0x1d324)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x1d30c)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((in_ECX + 0x1d2f4)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<ItemOverlay *>((GHIDRA_CAST<ItemOverlay *>((in_ECX + 0x1c034)))))->ItemOverlay::~ItemOverlay();
@@ -1911,7 +1911,7 @@ LAB_006f3fd9:
builtin_strncpy(anm2PathBuf,"gfx/ui/completion_widget.anm2",0x1e);
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(fileName._buf)) + 0x0))) = anm2PathBuf;
local_14 = (void *)0x8;
(GHIDRA_CAST<ANM2 *>((&temp_3f7f10adfc->_completionWidgetSprite)))->ANM2::Load(&fileName,1);
ANM2::Load(&temp_3f7f10adfc->_completionWidgetSprite,&fileName,1);
local_14 = (void *)0xffffffff;
if (0xf < fileName._capacity) {
freeSize = fileName._capacity + 1;
@@ -1929,10 +1929,10 @@ LAB_006f3fd9:
fileName._size = 0;
fileName._capacity = 0xf;
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(fileName._buf)) + 0x0))) = (*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(fileName._buf)) + 0x0))) & 0xffffffffffffff00;
bVar1 = (GHIDRA_CAST<ANM2 *>((&temp_3f7f10adfc->_completionWidgetSprite)))->ANM2::SetAnimation(s_Idle,1);
bVar1 = ANM2::SetAnimation(&temp_3f7f10adfc->_completionWidgetSprite,s_Idle,1);
if ((bVar1 != 0) &&
((temp_3f7f10adfc->_completionWidgetSprite)._animState._animData != (void *)0x0)) {
(GHIDRA_CAST<AnimationState *>((&(temp_3f7f10adfc->_completionWidgetSprite)._animState)))->AnimationState::SetFrameFloat(0.0);
AnimationState::SetFrameFloat(&(temp_3f7f10adfc->_completionWidgetSprite)._animState,0.0);
if ((temp_3f7f10adfc->_completionWidgetSprite)._animState._animData != (void *)0x0) {
(temp_3f7f10adfc->_completionWidgetSprite)._animState._isPlaying = 0;
}
@@ -1972,7 +1972,7 @@ void Game::reset_run_state()
(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);
ScoreSheet::Reset();
(this->_currentColorModifier)._red = 1.0;
(this->_currentColorModifier)._green = 1.0;
@@ -2488,7 +2488,7 @@ LAB_006f5040:
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(tmpName._buf)) + 0x0))) = (*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(tmpName._buf)) + 0x0))) & 0xffffffff00000000;
(GHIDRA_CAST<msvc::string *>((tmpName._buf)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/ui/completion_widget.anm2"),0x1d);
local_14 = (void *)0x12;
(GHIDRA_CAST<ANM2 *>((&pGVar1->_completionWidgetSprite)))->ANM2::Load(&tmpName,1);
ANM2::Load(&pGVar1->_completionWidgetSprite,&tmpName,1);
local_14 = (void *)0xffffffff;
if (0xf < tmpName._capacity) {
uVar4 = tmpName._capacity + 1;
@@ -2503,9 +2503,9 @@ LAB_006f5040:
}
operator_delete(pvVar3,uVar4);
}
isIdleSet = (GHIDRA_CAST<ANM2 *>((&pGVar1->_completionWidgetSprite)))->ANM2::SetAnimation(s_Idle,1);
isIdleSet = ANM2::SetAnimation(&pGVar1->_completionWidgetSprite,s_Idle,1);
if ((isIdleSet != 0) && ((pGVar1->_completionWidgetSprite)._animState._animData != (void *)0x0)) {
(GHIDRA_CAST<AnimationState *>((&(pGVar1->_completionWidgetSprite)._animState)))->AnimationState::SetFrameFloat(0.0);
AnimationState::SetFrameFloat(&(pGVar1->_completionWidgetSprite)._animState,0.0);
if ((pGVar1->_completionWidgetSprite)._animState._animData != (void *)0x0) {
(pGVar1->_completionWidgetSprite)._animState._isPlaying = 0;
}
@@ -5038,7 +5038,7 @@ void Game::Exit(uint8_t ShouldSave)
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((gameData)) + 0x25948)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((gameData)) + 0x2590c)))) = 0;
*GHIDRA_CAST<uint32_t *>(&gameData->_gameOver) = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((gameData->_gameOver))) + 0x8)))))))->ANM2::Reset();
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((gameData->_gameOver))) + 0x8)))));
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((gameData->_leaderboard))) + 0x4)))) = 0;
playersEnd = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((gameData->_onlineStatsScreen))) + 0x56c))));
entryOffset = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((gameData->_onlineStatsScreen))) + 0x568))));
@@ -5073,8 +5073,8 @@ void Game::Exit(uint8_t ShouldSave)
(gameData->_roomTransition)._flags = 0;
(pGVar1->_playerManager)._roomTransitionPlayer = (void *)0x0;
gameData->_gameStateFlags = 0;
(GHIDRA_CAST<ANM2 *>((&(gameData->_itemOverlay)._sprite)))->ANM2::Reset();
(GHIDRA_CAST<ANM2 *>((&(gameData->_itemOverlay)._megaMushPlayerSprite)))->ANM2::Reset();
ANM2::Reset(&(gameData->_itemOverlay)._sprite);
ANM2::Reset(&(gameData->_itemOverlay)._megaMushPlayerSprite);
(gameData->_itemOverlay)._state = 0;
(gameData->_itemOverlay)._overlayID = 0;
FUN_00421260();
@@ -6090,7 +6090,7 @@ LAB_006fbfa2:
((GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Render(), (this->_genericPrompt)._isOnlineVote != 0)) {
local_84.y = g_screenHeight - 55.0;
local_84.x = g_screenWidth * 0.5 - 32.0;
(GHIDRA_CAST<ANM2 *>((&this->_completionWidgetSprite)))->ANM2::Render(&local_84,&g_vectorZero,&g_vectorZero);
ANM2::Render(&this->_completionWidgetSprite,&local_84,&g_vectorZero,&g_vectorZero);
sprintf(GHIDRA_CAST<uint8_t *>(&local_48._green),GHIDRA_CAST<uint8_t *>("%d/%d"));
manager = g_manager;
FUN_00a1a580();
@@ -6426,7 +6426,8 @@ LAB_006fbfa2:
pos.y = 10.0;
pos.x = g_screenWidth * 0.5;
local_48._green = stageTransitionProgress;
(GHIDRA_CAST<Font *>((desyncFont)))->Font::DrawString(GHIDRA_CAST<uint8_t *>("DESYNCED"),pos,(Vector)0x4000000040000000,&local_48,settings);
Font::DrawString(desyncFont,GHIDRA_CAST<uint8_t *>("DESYNCED"),pos,(Vector)0x4000000040000000,&local_48,settings
);
local_14 = 0xffffffff;
}
render_debug_lua_memory();
@@ -11757,7 +11758,7 @@ LAB_007d021d:
if (*labelText == 0x23) {
isStringFound = 0;
local_80.y = (float)(labelText + 1);
(GHIDRA_CAST<StringTable *>((local_ac)))->StringTable::get_string(GHIDRA_CAST<uint8_t *>("Default"),0,GHIDRA_CAST<uint8_t *>(local_80.y),&isStringFound);
StringTable::get_string(local_ac,GHIDRA_CAST<uint8_t *>("Default"),0,GHIDRA_CAST<uint8_t *>(local_80.y),&isStringFound);
if (isStringFound == 0) {
isStringFound = 0;
labelText = StringTable::get_string
@@ -12243,7 +12244,7 @@ void Game::Render(Entity *entity, Vector *renderOffset)
local_180.y = (float)&(entity->_sprite)._animState;
local_100.y = (float)(renderOffsetLocal.y + pVVar5->y);
if (this->_roomList[0x99].SavedGridEntities._begin != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed))))->AnimationState::SetFrameFloat(0.0);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed),0.0);
}
lightSprite = local_130;
local_150.y = 0.0;
@@ -12307,7 +12308,7 @@ void Game::Render(Entity *entity, Vector *renderOffset)
(room->_lightSprite)._rotation =
lightSprite->_rotation + *GHIDRA_CAST<float *>(&(local_130->_animState)._isPlaying);
local_110.y = local_100.y + local_170.y;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_roomList[0x99]._doors + 6)))))->ANM2::Render(&local_110,&g_vectorZero,
ANM2::Render(GHIDRA_CAST<ANM2 *>((this->_roomList[0x99]._doors + 6)),&local_110,&g_vectorZero,
&g_vectorZero);
this = GHIDRA_CAST<Game *>(room);
}
@@ -12342,7 +12343,7 @@ void Game::Render(Entity *entity, Vector *renderOffset)
iVar19 = 0;
do {
local_100.y = *GHIDRA_CAST<float *>((iVar19 + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(temp_5ff20d4b15) + 0x18))));
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(local_100.y));
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(local_100.y));
if ((layer->_bitflags & 4) != 0) {
layerFramesBase = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(temp_5ff20d4b15) + 0x18));
frameIndex = AnimationState::GetLayerFrameIdx
@@ -12391,7 +12392,7 @@ void Game::Render(Entity *entity, Vector *renderOffset)
local_120.x = fVar22 * pVVar5->x + local_100.y;
LAB_00809a2f:
pRVar17 = room;
(GHIDRA_CAST<ANM2 *>((&room->_lightSprite)))->ANM2::Render(&local_120,&g_vectorZero,&g_vectorZero);
ANM2::Render(&room->_lightSprite,&local_120,&g_vectorZero,&g_vectorZero);
goto LAB_00807b3d;
}
goto switchD_00809dea_caseD_2;
@@ -12424,7 +12425,7 @@ LAB_00809a2f:
if (bVar3 != 0) {
(GHIDRA_CAST<BlendMode *>((local_148)))->BlendMode::SetMode(2,0);
lightSprite = GHIDRA_CAST<ANM2 *>((this->_roomList[0x99]._doors + 6));
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
layer->_blendMode[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_148)) + 0x0)));
layer->_blendMode[1] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_148)) + 0x4)));
layer->_blendMode[2] = GHIDRA_INT(local_140);
@@ -12439,9 +12440,9 @@ LAB_00809a2f:
fVar22 = (local_150.y + 2.0) * g_vectorOne.x;
(room->_lightSprite)._scale.y = (local_150.y + 2.0) * g_vectorOne.y;
(room->_lightSprite)._scale.x = fVar22;
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(&local_170,&g_vectorZero,&g_vectorZero);
ANM2::Render(lightSprite,&local_170,&g_vectorZero,&g_vectorZero);
(GHIDRA_CAST<BlendMode *>((local_148)))->BlendMode::SetMode(1,0);
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
layer->_blendMode[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_148)) + 0x0)));
layer->_blendMode[1] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_148)) + 0x4)));
layer->_blendMode[2] = GHIDRA_INT(local_140);
@@ -12556,7 +12557,7 @@ LAB_008078ab:
(roomAlias->_lightSprite)._color._tint[3] =
(float)local_108 * (roomAlias->_lightSprite)._color._tint[3];
if ((roomAlias->_lightSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((&(roomAlias->_lightSprite)._animState)))->AnimationState::SetFrameFloat(1.0);
AnimationState::SetFrameFloat(&(roomAlias->_lightSprite)._animState,1.0);
}
uVar15 = (GHIDRA_CAST<Level *>((GHIDRA_CAST<Level *>(g_game))))->Level::GetCurses();
if ((uVar15 & 1) == 0) {
@@ -12569,9 +12570,9 @@ LAB_008078ab:
fVar22 = fVar21 * g_vectorOne.x;
(roomAlias->_lightSprite)._scale.y = fVar21 * g_vectorOne.y;
(roomAlias->_lightSprite)._scale.x = fVar22;
(GHIDRA_CAST<ANM2 *>((&roomAlias->_lightSprite)))->ANM2::Render(&local_170,&g_vectorZero,&g_vectorZero);
ANM2::Render(&roomAlias->_lightSprite,&local_170,&g_vectorZero,&g_vectorZero);
if ((roomAlias->_lightSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((&(roomAlias->_lightSprite)._animState)))->AnimationState::SetFrameFloat(0.0);
AnimationState::SetFrameFloat(&(roomAlias->_lightSprite)._animState,0.0);
}
bVar3 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(entity))))->Entity_Player::HasCollectible(0x1a9,0);
if (bVar3 != 0) {
@@ -12579,13 +12580,13 @@ LAB_008078ab:
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&tmpColor))))->Color::Reset();
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomAlias)) + 0x6ffc)))))))->Color::operator_assign(&tmpColor);
(GHIDRA_CAST<BlendMode *>((local_148)))->BlendMode::SetMode(1,0);
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomAlias)) + 0x6f54)))))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomAlias)) + 0x6f54)))),GHIDRA_CAST<uint8_t *>(0x0));
layer->_blendMode[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_148)) + 0x0)));
layer->_blendMode[1] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_148)) + 0x4)));
layer->_blendMode[2] = GHIDRA_INT(local_140);
layer->_blendMode[3] = GHIDRA_INT(local_13c.x);
layer->_blendMode[4] = GHIDRA_INT(local_13c.y);
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomAlias)) + 0x6f54)))))))->ANM2::Render(&local_170,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomAlias)) + 0x6f54)))),&local_170,&g_vectorZero,&g_vectorZero);
roomAlias = room;
}
uVar15 = GetStageID(g_game,0);
@@ -12623,7 +12624,7 @@ LAB_008078ab:
local_108 = GHIDRA_CAST<ANM2 *>((this->_roomList[0x99]._doors + 6));
local_12c = GHIDRA_CAST<ANM2 *>(0x3ecccccd);
pFVar7 = GHIDRA_CAST<Font *>((GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(local_108))))->Sprite)::Color();
(GHIDRA_CAST<Font *>((pFVar7)))->Font::SetLineHeightModifier(0.0);
Font::SetLineHeightModifier(pFVar7,0.0);
maskedTearFlags =
BitSet128::operator_and(GHIDRA_CAST<BitSet128 *>(local_148),GHIDRA_CAST<BitSet128 *>(tearFlags),&g_tearFlagGlow);
bVar3 = (GHIDRA_CAST<BitSet128 *>((maskedTearFlags)))->BitSet128::IsNonZero();
@@ -12725,7 +12726,7 @@ LAB_00808404:
pCVar8 = GHIDRA_CAST<Color *>((GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(local_108))))->Sprite)::Color();
fVar22 = (GHIDRA_CAST<Color *>((pCVar8)))->Color::A();
local_100.y = fVar22 + local_150.y;
(GHIDRA_CAST<Font *>((pFVar7)))->Font::SetLineHeightModifier(local_100.y);
Font::SetLineHeightModifier(pFVar7,local_100.y);
}
lightSprite = local_108;
pCVar8 = GHIDRA_CAST<Color *>((GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(local_108))))->Sprite)::Color();
@@ -12749,7 +12750,7 @@ LAB_00808404:
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(&local_170,&renderOffsetLocal);
lightSprite = local_108;
(GHIDRA_CAST<ANM2 *>((local_108)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(local_108,pVVar5,pVVar16,pVVar12);
if (local_130 != GHIDRA_CAST<ANM2 *>(0x0)) {
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(lightSprite))))->Sprite::SetFrame_1(0);
}
@@ -12780,7 +12781,7 @@ LAB_00808404:
local_1a8._blue = 0.6;
local_1a8._alpha = 1.0;
FUN_00a0f750();
layer = (GHIDRA_CAST<ANM2 *>((&(GHIDRA_CAST<Entity_Player *>(entity))->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
layer = ANM2::GetLayer(&(GHIDRA_CAST<Entity_Player *>(entity))->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
tmpColor._tint[0] = ((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._color._tint[0];
tmpColor._tint[1] = ((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._color._tint[1];
tmpColor._tint[2] = ((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._color._tint[2];
@@ -12800,7 +12801,7 @@ LAB_00808404:
local_1a8._blue = 0.6;
local_1a8._alpha = 1.0;
FUN_00a0f750();
layer = (GHIDRA_CAST<ANM2 *>((&(GHIDRA_CAST<Entity_Player *>(entity))->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
layer = ANM2::GetLayer(&(GHIDRA_CAST<Entity_Player *>(entity))->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
tmpColor._tint[0] = ((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._color._tint[0];
tmpColor._tint[1] = ((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._color._tint[1];
tmpColor._tint[2] = ((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._color._tint[2];
@@ -12837,12 +12838,12 @@ LAB_00808404:
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&tmpColor))))->Color::SetTint((float)lightSprite,(float)temp_5ff20d4b15,(float)pAVar18,
1.0);
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>((this->_roomList[0x9a]._doors + 2)))))->Color::operator_assign(&tmpColor);
layer = (GHIDRA_CAST<ANM2 *>((&(GHIDRA_CAST<Entity_Player *>(entity))->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
layer = ANM2::GetLayer(&(GHIDRA_CAST<Entity_Player *>(entity))->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
fVar22 = (layer->_size).y;
this->_roomList[0x9a].AllowedDoors = GHIDRA_INT(((layer->_size).x * 0.4));
this->_roomList[0x9a]._doors[0] = GHIDRA_INT((fVar22 * 0.4));
if (this->_roomList[0x99].SavedGridEntities._begin != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed))))->AnimationState::SetFrameFloat(1.0);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed),1.0);
}
local_110.y = ((GHIDRA_CAST<Entity_Player *>(entity))->_pos).y - 9.0;
LAB_00807d20:
@@ -12850,10 +12851,10 @@ LAB_00807d20:
pVVar5 = Isaac::GetRenderPosition(&local_13c,&local_110,1);
local_120.y = renderOffsetLocal.y + pVVar5->y;
local_120.x = renderOffsetLocal.x + pVVar5->x;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_roomList[0x99]._doors + 6)))))->ANM2::Render(&local_120,&g_vectorZero,
ANM2::Render(GHIDRA_CAST<ANM2 *>((this->_roomList[0x99]._doors + 6)),&local_120,&g_vectorZero,
&g_vectorZero);
if (this->_roomList[0x99].SavedGridEntities._begin != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed))))->AnimationState::SetFrameFloat(0.0);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed),0.0);
}
}
break;
@@ -12870,12 +12871,12 @@ LAB_00807d20:
goto LAB_00808e0d;
}
lightSprite = GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<Entity *>((entity)))->Entity)::GetSprite();
local_100.y = (float)(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>("sparks"));
local_100.y = (float)ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>("sparks"));
if (GHIDRA_CAST<ANM2 *>(local_100.y) != GHIDRA_CAST<ANM2 *>(0x0)) {
(GHIDRA_CAST<Entity *>((entity)))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
iVar19 = _ptr_deref_or_minus1();
temp_5ff20d4b15 = (GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetLayerFrame(iVar19);
temp_5ff20d4b15 = AnimationState::GetLayerFrame(pAVar10,iVar19);
if ((temp_5ff20d4b15 != (void *)0x0) && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(temp_5ff20d4b15) + 0x2c)) != '\0')) {
local_100.y = 0.5;
pVVar5 = Vector::operator_mul
@@ -13035,7 +13036,7 @@ LAB_008087da:
pVVar12 = &g_vectorZero;
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(&local_1b0,&renderOffsetLocal);
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(lightSprite,pVVar5,pVVar16,pVVar12);
}
local_150.y = (float)(GHIDRA_INT((GHIDRA_CAST<std_string *>(local_150.y))->_buf) + 1);
} while (GHIDRA_INT(local_150.y) < 0x14);
@@ -13066,7 +13067,7 @@ LAB_008087da:
pVVar12 = &g_vectorZero;
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(GHIDRA_CAST<Vector *>(local_178),&local_120);
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(lightSprite,pVVar5,pVVar16,pVVar12);
}
uVar15 = uVar15 + GHIDRA_INT(local_160.y);
uVar9 = FUN_0042f160();
@@ -13104,7 +13105,7 @@ LAB_008087da:
pVVar12 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(&local_180,pVVar16);
pRVar17 = room;
(GHIDRA_CAST<ANM2 *>((&room->_lightSprite)))->ANM2::Render(pVVar5,pVVar12,pVVar11);
ANM2::Render(&room->_lightSprite,pVVar5,pVVar12,pVVar11);
goto LAB_00807b3d;
}
local_100.y = (GHIDRA_CAST<Room *>((GHIDRA_CAST<Room *>(this))))->Room::GetLightingAlpha();
@@ -13276,7 +13277,7 @@ LAB_00809546:
this->_roomList[0x9a].AllowedDoors = GHIDRA_INT((g_vectorOne.x * 0.6));
this->_roomList[0x9a]._doors[0] = GHIDRA_INT(fVar22);
if (this->_roomList[0x99].SavedGridEntities._begin != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed))))->AnimationState::SetFrameFloat(1.0);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed),1.0);
}
local_110.y = ((GHIDRA_CAST<Entity_Player *>(entity))->_pos).y;
local_110.x = ((GHIDRA_CAST<Entity_Player *>(entity))->_pos).x;
@@ -13291,11 +13292,11 @@ LAB_00809546:
local_120.y = fVar22 * pVVar5->y + local_160.y;
local_120.x = fVar22 * pVVar5->x + local_100.y;
LAB_00809c03:
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(local_188.y))))->ANM2::Render(&local_120,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>(local_188.y),&local_120,&g_vectorZero,&g_vectorZero);
LAB_00809c21:
pRVar17 = room;
if ((room->_lightSprite)._animState._animData != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((&(room->_lightSprite)._animState)))->AnimationState::SetFrameFloat(0.0);
AnimationState::SetFrameFloat(&(room->_lightSprite)._animState,0.0);
}
goto LAB_00807b3d;
}
@@ -13406,7 +13407,7 @@ LAB_0080b3a9:
if (-1 < GHIDRA_INT(uVar15)) {
(GHIDRA_CAST<Entity *>((entity)))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
local_160.y = (float)(GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetLayerFrame(GHIDRA_INT(local_130));
local_160.y = (float)AnimationState::GetLayerFrame(pAVar10,GHIDRA_INT(local_130));
if (((void *)local_160.y != (void *)0x0) &&
(*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(local_160.y) + 0x2c)) != '\0')) {
pVVar5 = (GHIDRA_CAST<Vector *>((&local_13c)))->Vector::Vector(33.0,37.0);
@@ -13485,7 +13486,7 @@ LAB_0080b3a9:
this->_roomList[0x9a].AllowedDoors = GHIDRA_INT((g_vectorOne.x * 0.6));
this->_roomList[0x9a]._doors[0] = GHIDRA_INT(fVar22);
if (this->_roomList[0x99].SavedGridEntities._begin != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed))))->AnimationState::SetFrameFloat(1.0);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed),1.0);
}
local_110.y = ((GHIDRA_CAST<Entity_Player *>(entity))->_pos).y - 12.0;
local_110.x = ((GHIDRA_CAST<Entity_Player *>(entity))->_pos).x + 0.0;
@@ -13532,7 +13533,7 @@ LAB_0080b3a9:
pVVar5 = Isaac::GetRenderPosition(&local_13c,&local_110,1);
local_120.y = renderOffsetLocal.y + pVVar5->y;
local_120.x = renderOffsetLocal.x + pVVar5->x;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(local_100.y))))->ANM2::Render(&local_120,&g_vectorZero,&g_vectorZero);
ANM2::Render(GHIDRA_CAST<ANM2 *>(local_100.y),&local_120,&g_vectorZero,&g_vectorZero);
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(local_100.y))))->Sprite::SetFrame_1(0);
}
break;
@@ -13581,7 +13582,7 @@ LAB_0080b3a9:
pVVar12 = &g_vectorZero;
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(&local_110,&renderOffsetLocal);
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(lightSprite,pVVar5,pVVar16,pVVar12);
msvc::set<int>::insert();
}
}
@@ -13596,7 +13597,7 @@ LAB_0080b3a9:
if (bVar3 == 0) break;
}
temp_5ff20d4b15 =
(GHIDRA_CAST<AnimationState *>((&((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._animState)))->AnimationState::GetLayerFrame(0);
AnimationState::GetLayerFrame(&((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._animState,0);
if ((temp_5ff20d4b15 != (void *)0x0) && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(temp_5ff20d4b15) + 0x2c)) != '\0')) {
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&tmpColor))))->Color::Reset();
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&tmpColor))))->Color::SetTint(1.0,0.0,0.0,1.0);
@@ -13606,10 +13607,10 @@ LAB_0080b3a9:
GHIDRA_INT((((GHIDRA_CAST<Entity_Player *>(entity))->_sprite)._scale.x * 0.5));
this->_roomList[0x9a]._doors[0] = GHIDRA_INT((fVar22 * 0.5));
if (this->_roomList[0x99].SavedGridEntities._begin != (void *)0x0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed))))->AnimationState::SetFrameFloat(1.0);
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&this->_roomList[0x99].BossDeathSeed),1.0);
}
lightSprite = GHIDRA_CAST<ANM2 *>((this->_roomList[0x99]._doors + 6));
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
layer->_blendMode[0] = DAT_00c35b58;
layer->_blendMode[1] = DAT_00c35b5c;
layer->_blendMode[2] = DAT_00c35b60;
@@ -13620,8 +13621,8 @@ LAB_0080b3a9:
pVVar5 = Isaac::GetRenderPosition(&local_13c,&local_110,1);
local_120.y = renderOffsetLocal.y + pVVar5->y;
local_120.x = renderOffsetLocal.x + pVVar5->x;
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(&local_120,&g_vectorZero,&g_vectorZero);
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
ANM2::Render(lightSprite,&local_120,&g_vectorZero,&g_vectorZero);
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
layer->_blendMode[0] = DAT_00c354ac;
layer->_blendMode[1] = DAT_00c354b0;
layer->_blendMode[2] = DAT_00c354b4;
@@ -13635,7 +13636,7 @@ LAB_0080b3a9:
if (iVar19 == 0) {
(GHIDRA_CAST<Entity *>((entity)))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
temp_5ff20d4b15 = (GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetLayerFrame(0);
temp_5ff20d4b15 = AnimationState::GetLayerFrame(pAVar10,0);
if (temp_5ff20d4b15 == (void *)0x0) break;
pCVar8 = GHIDRA_CAST<Color *>((GHIDRA_INT(temp_5ff20d4b15) + 0x30));
local_100.y = (GHIDRA_CAST<Color *>((pCVar8)))->Color::A();
@@ -13678,13 +13679,13 @@ LAB_00809757:
pVVar11 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(pVVar16,pVVar12);
pRVar17 = room;
(GHIDRA_CAST<ANM2 *>((&room->_lightSprite)))->ANM2::Render(pVVar5,pVVar11,bottomrightclamp);
ANM2::Render(&room->_lightSprite,pVVar5,pVVar11,bottomrightclamp);
goto LAB_00807b3d;
case 0x41:
color = GHIDRA_CAST<ColorMod *>((GHIDRA_CAST<Entity *>((entity)))->Entity)::SplatColor();
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&tmpColor))))->Color::operator_assign(color);
pfVar4 = GHIDRA_CAST<float *>((GHIDRA_CAST<Entity *>((entity)))->Entity)::SpriteScale();
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(&tmpColor))))->Font::SetLineHeightModifier(*pfVar4);
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(&tmpColor),*pfVar4);
color = &tmpColor;
goto LAB_0080a338;
case 0x46:
@@ -13725,7 +13726,7 @@ LAB_008092c5:
pEVar1 = lightEntity;
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(lightEntity))))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
temp_5ff20d4b15 = (GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetLayerFrame(0);
temp_5ff20d4b15 = AnimationState::GetLayerFrame(pAVar10,0);
if (temp_5ff20d4b15 == (void *)0x0) {
local_160.y = 1.0;
}
@@ -13747,7 +13748,7 @@ LAB_008092c5:
case 0x5d:
(GHIDRA_CAST<Entity *>((entity)))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
temp_5ff20d4b15 = (GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetLayerFrame(0);
temp_5ff20d4b15 = AnimationState::GetLayerFrame(pAVar10,0);
if (temp_5ff20d4b15 != (void *)0x0) {
fVar20 = (long double)Color::RO();
local_100.y = (float)(fVar20 + (long double)1.0);
@@ -13791,7 +13792,7 @@ LAB_0080a3bc:
local_100.y = (float)lightSprite;
(GHIDRA_CAST<Entity *>((entity)))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
iVar19 = (GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetAnimationLength();
iVar19 = AnimationState::GetAnimationLength(pAVar10);
local_100.y = 1.0 - local_100.y / (float)iVar19;
pKVar14 = (GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_c8 + 0x18)))))->KColor::KColor(0.7,0.0,0.0,1.0);
sprite = GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Entity *>((entity)))->Entity)::GetSprite();
@@ -13815,7 +13816,7 @@ LAB_0080a3bc:
case 0x70:
(GHIDRA_CAST<Entity *>((entity)))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
temp_5ff20d4b15 = (GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetLayerFrame(0);
temp_5ff20d4b15 = AnimationState::GetLayerFrame(pAVar10,0);
fVar22 = (GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>((GHIDRA_INT(temp_5ff20d4b15) + 0x30)))))->Color::A();
local_100.y = fVar22 * 6.4;
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&tmpColor))))->Color::Color(0.4,0.7,1.0,local_100.y);
@@ -13856,7 +13857,7 @@ LAB_0080aace:
pVVar12 = &g_vectorZero;
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(&local_120,&renderOffsetLocal);
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(lightSprite,pVVar5,pVVar16,pVVar12);
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(lightSprite))))->Sprite::SetFrame_1(0);
break;
case 0x73:
@@ -13917,11 +13918,11 @@ LAB_0080ae36:
pEVar1 = lightEntity;
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(lightEntity))))->Entity::GetSprite();
local_150.y = (float)Config::GetPillEffects();
bVar3 = (GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(local_150.y))))->AnimationState::IsLoopingAnimation();
bVar3 = AnimationState::IsLoopingAnimation(GHIDRA_CAST<AnimationState *>(local_150.y));
if (bVar3 == 0) {
FUN_00407370();
local_100.y = (float)lightSprite;
iVar19 = (GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(local_150.y))))->AnimationState::GetAnimationLength();
iVar19 = AnimationState::GetAnimationLength(GHIDRA_CAST<AnimationState *>(local_150.y));
local_160.y = 1.0 - local_100.y / (float)iVar19;
}
else {
@@ -13945,7 +13946,7 @@ LAB_0080a2e8:
pVVar11 = &g_vectorZero;
pVVar12 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar16)))->Vector::__add(pVVar5,&renderOffsetLocal);
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(sprite))))->ANM2::Render(pVVar5,pVVar12,pVVar11);
ANM2::Render(GHIDRA_CAST<ANM2 *>(sprite),pVVar5,pVVar12,pVVar11);
(GHIDRA_CAST<Sprite *>((sprite)))->Sprite::SetFrame_1(0);
}
break;
@@ -13970,7 +13971,7 @@ LAB_0080a2e8:
color = GHIDRA_CAST<ColorMod *>((GHIDRA_CAST<Sprite *>((sprite)))->Sprite)::Color();
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(lightSprite))))->Sprite::SetColor(color);
pFVar7 = GHIDRA_CAST<Font *>((GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(lightSprite))))->Sprite)::Color();
(GHIDRA_CAST<Font *>((pFVar7)))->Font::SetLineHeightModifier(local_150.y);
Font::SetLineHeightModifier(pFVar7,local_150.y);
sprite = GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(pEVar1))))->Entity)::GetSprite();
pVVar5 = GHIDRA_CAST<Vector *>((GHIDRA_CAST<Sprite *>((sprite)))->Sprite)::Scale();
local_100.y = 0.8;
@@ -13984,7 +13985,7 @@ LAB_0080a2e8:
pVVar12 = &g_vectorZero;
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(&local_120,&renderOffsetLocal);
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(lightSprite,pVVar5,pVVar16,pVVar12);
msvc::set<int>::insert();
}
break;
@@ -14019,7 +14020,7 @@ LAB_0080a2e8:
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(&local_13c,&renderOffsetLocal);
LAB_00807b32:
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(lightSprite,pVVar5,pVVar16,pVVar12);
break;
case 0xb1:
iVar19 = (GHIDRA_CAST<Entity *>((entity)))->Entity::SubType();
@@ -14028,9 +14029,9 @@ LAB_00807b32:
if (cVar2 != '\0') {
(GHIDRA_CAST<Entity *>((entity)))->Entity::GetSprite();
pAVar10 = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
local_100.y = (float)(GHIDRA_CAST<AnimationState *>((pAVar10)))->AnimationState::GetAnimationLength();
local_100.y = (float)AnimationState::GetAnimationLength(pAVar10);
lightSprite = GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<Entity *>((entity)))->Entity)::GetSprite();
iVar19 = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetFrame();
iVar19 = ANM2::GetFrame(lightSprite);
if (GHIDRA_INT(local_100.y) - iVar19 < 7) {
sprite = GHIDRA_CAST<Sprite *>((this->_roomList[0x99]._doors + 6));
local_100.y = (float)(GHIDRA_INT(local_100.y) - iVar19) / 6.0;
@@ -14073,7 +14074,7 @@ LAB_00807b3d:
pVVar12 = &g_vectorZero;
pVVar16 = &g_vectorZero;
pVVar5 = (GHIDRA_CAST<Vector *>((pVVar5)))->Vector::__add(GHIDRA_CAST<Vector *>(local_178),&renderOffsetLocal);
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(pVVar5,pVVar16,pVVar12);
ANM2::Render(lightSprite,pVVar5,pVVar16,pVVar12);
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(lightSprite))))->Sprite::SetFrame_1(0);
}
DAT_00c7977e = 0;