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

+30 -30
View File
@@ -38,34 +38,34 @@ PauseScreen_MyStuff::~PauseScreen_MyStuff()
}
}
local_8 = 1;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x52c)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x57c)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x55c)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x52c)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x57c)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x55c)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x544)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x52c)))))->msvc::string::_Tidy_deallocate();
local_8 = 2;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x418)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x468)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x448)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x418)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x468)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x448)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x430)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x418)))))->msvc::string::_Tidy_deallocate();
local_8 = 3;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x304)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x354)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x334)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x304)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x354)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x334)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x31c)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x304)))))->msvc::string::_Tidy_deallocate();
local_8 = 4;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x1f0)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x240)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x220)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x1f0)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x240)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x220)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x208)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x1f0)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<RichText *>(((void *)(GHIDRA_INT(this) + 0x184))))->RichText::~RichText();
RichText::~RichText((void *)(GHIDRA_INT(this) + 0x184));
local_8 = 5;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 100)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0xb4)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x94)))))->AnimationState::~AnimationState();
ANM2::Reset(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 100)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0xb4)));
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x94)));
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x7c)))))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 100)))))->msvc::string::_Tidy_deallocate();
local_8 = 6;
@@ -125,7 +125,7 @@ void PauseScreen_MyStuff::Init()
filePath._capacity = 0x2f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"font/TeamMeatEx/TeamMeatEx12.fnt",0x21);
local_14 = 0;
(GHIDRA_CAST<RichText *>(((void *)(GHIDRA_INT(this) + 0x184))))->RichText::load_font(&filePath);
RichText::load_font((void *)(GHIDRA_INT(this) + 0x184),&filePath);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
@@ -153,7 +153,7 @@ void PauseScreen_MyStuff::Init()
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/PauseScreen_MyStuff.anm2",0x20);
local_14 = 1;
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Load(&filePath,1);
ANM2::Load(sprite,&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
@@ -171,9 +171,9 @@ void PauseScreen_MyStuff::Init()
pbVar5 = *GHIDRA_CAST<uint8_t **>((GHIDRA_CAST<char *>(this) + 0x338));
if (pbVar5 == GHIDRA_CAST<uint8_t *>(0x0)) {
LAB_008d2e85:
bVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(s_Idle,1);
bVar1 = ANM2::SetAnimation(sprite,s_Idle,1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x334)))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x334)));
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(this) + 0x348)) = 1;
}
}
@@ -203,7 +203,7 @@ LAB_008d2e77:
if ((uVar4 != 0) || ((pbVar5[0x34] != 0 && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(this) + 0x348)) == '\0'))))
goto LAB_008d2e85;
}
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>("Cursor"));
layer = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>("Cursor"));
selfRef = self;
sprite = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(self) + 0x418));
filePath._size = 0;
@@ -218,7 +218,7 @@ LAB_008d2e77:
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/Death Screen.anm2",0x19);
local_14 = 2;
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Load(&filePath,1);
ANM2::Load(sprite,&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
@@ -236,9 +236,9 @@ LAB_008d2e77:
pbVar5 = *GHIDRA_CAST<uint8_t **>((GHIDRA_CAST<char *>(selfRef) + 0x44c));
if (pbVar5 == GHIDRA_CAST<uint8_t *>(0x0)) {
LAB_008d2fa5:
bVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Diary"),1);
bVar1 = ANM2::SetAnimation(sprite,GHIDRA_CAST<uint8_t *>("Diary"),1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(selfRef) + 0x448)))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(selfRef) + 0x448)));
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(selfRef) + 0x45c)) = 1;
}
}
@@ -271,12 +271,12 @@ LAB_008d2f97:
pbVar5 = GHIDRA_CAST<uint8_t *>(0x0);
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(self) + 0x498)) != 0) {
do {
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(pbVar5);
layer = ANM2::GetLayer(sprite,pbVar5);
pbVar5 = pbVar5 + 1;
layer->_visible = 0;
} while (pbVar5 < *GHIDRA_CAST<uint8_t **>((GHIDRA_CAST<char *>(self) + 0x498)));
}
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>("Items"));
layer = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>("Items"));
selfRef = self;
sprite = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(self) + 0x52c));
filePath._size = 0;
@@ -291,7 +291,7 @@ LAB_008d2f97:
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/ui_charge_icons.anm2",0x1c);
local_14 = 3;
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Load(&filePath,1);
ANM2::Load(sprite,&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
@@ -333,9 +333,9 @@ LAB_008d30f5:
if ((uVar4 == 0) && ((pbVar5[0x34] == 0 || (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(selfRef) + 0x570)) != '\0'))))
goto LAB_008d3121;
}
bVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("ChargeIcon"),1);
bVar1 = ANM2::SetAnimation(sprite,GHIDRA_CAST<uint8_t *>("ChargeIcon"),1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(selfRef) + 0x55c)))))->AnimationState::Rewind();
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(selfRef) + 0x55c)));
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(selfRef) + 0x570)) = 1;
}
LAB_008d3121:
@@ -351,7 +351,7 @@ LAB_008d3121:
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/minimap_icons.anm2",0x1a);
local_14 = 4;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(selfRef) + 0x1f0)))))->ANM2::Load(&filePath,1);
ANM2::Load(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(selfRef) + 0x1f0)),&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;