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

+14 -14
View File
@@ -5741,7 +5741,7 @@ LAB_0069abfa:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX;
if (pvVar3 == (void *)0x0) goto LAB_0069abfa;
@@ -5772,7 +5772,7 @@ LAB_0069aca5:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_01;
if (pvVar3 == (void *)0x0) goto LAB_0069aca5;
@@ -5803,7 +5803,7 @@ LAB_0069ad50:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_03;
if (pvVar3 == (void *)0x0) goto LAB_0069ad50;
@@ -5834,7 +5834,7 @@ LAB_0069adfb:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_05;
if (pvVar3 == (void *)0x0) goto LAB_0069adfb;
@@ -5865,7 +5865,7 @@ LAB_0069aea6:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_07;
if (pvVar3 == (void *)0x0) goto LAB_0069aea6;
@@ -5894,7 +5894,7 @@ LAB_0069aea6:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_09;
if (pvVar3 == (void *)0x0) goto LAB_0069af5a;
@@ -5926,7 +5926,7 @@ LAB_0069af5a:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_11;
if (pvVar3 == (void *)0x0) goto LAB_0069b00e;
@@ -5951,7 +5951,7 @@ LAB_0069b00e:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_13;
if (pvVar3 == (void *)0x0) goto LAB_0069b099;
@@ -5976,7 +5976,7 @@ LAB_0069b099:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_15;
if (pvVar3 == (void *)0x0) goto LAB_0069b126;
@@ -6001,7 +6001,7 @@ LAB_0069b126:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
pvVar3 = (GHIDRA_CAST<ANM2 *>((menuAnm2)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>(psVar9));
pvVar3 = ANM2::GetAnimationData(menuAnm2,GHIDRA_CAST<uint8_t *>(psVar9));
isAnimFound = '\x01';
pvVar14 = extraout_ECX_17;
if (pvVar3 == (void *)0x0) goto LAB_0069b1b6;
@@ -6026,16 +6026,16 @@ LAB_0069b1b6:
if (0xf < psVar9->_capacity) {
psVar9 = *GHIDRA_CAST<std_string **>(psVar9->_buf);
}
bVar1 = (GHIDRA_CAST<ANM2 *>((playerEntry._moddedMenuBackgroundANM2)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(psVar9),1);
bVar1 = ANM2::SetAnimation(playerEntry._moddedMenuBackgroundANM2,GHIDRA_CAST<uint8_t *>(psVar9),1);
if (((bVar1 != 0) && (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar14) + 0x34)) != 0)) &&
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(pvVar14) + 0x30)))))->AnimationState::SetFrameFloat(0.0),
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(pvVar14) + 0x30)),0.0),
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar14) + 0x34)) != 0)) {
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(pvVar14) + 0x44)) = 0;
}
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 4;
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::_Tidy_deallocate();
pvVar14 = playerEntry._moddedMenuBackgroundANM2;
backgroundLayer = (GHIDRA_CAST<ANM2 *>((playerEntry._moddedMenuBackgroundANM2)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>("Background"));
backgroundLayer = ANM2::GetLayer(playerEntry._moddedMenuBackgroundANM2,GHIDRA_CAST<uint8_t *>("Background"));
if (backgroundLayer != GHIDRA_CAST<LayerState *>(0x0)) {
if (backgroundLayer->_layerData == GHIDRA_CAST<int *>(0x0)) {
iVar5 = -1;
@@ -6043,7 +6043,7 @@ LAB_0069b1b6:
else {
iVar5 = *GHIDRA_CAST<int *>(backgroundLayer->_layerData);
}
pvVar14 = (GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(pvVar14) + 0x30)))))->AnimationState::GetLayerFrame(iVar5);
pvVar14 = AnimationState::GetLayerFrame(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(pvVar14) + 0x30)),iVar5);
if (pvVar14 != (void *)0x0) {
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(pvVar14) + 0x2c)) != '\0') {
playerEntry._renderCustomBackground = 1;