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:
1 parent
d6e1ca7c6c
commit
780767f5e1
161 files changed
+8646
-21919
No files matched your search
@@ -2726,7 +2726,7 @@ LAB_00689e10:
|
||||
pcVar4 = GHIDRA_CAST<char *>(FUN_00694120(uVar16));
|
||||
cleanupFlags = cleanupFlags | 2;
|
||||
pbVar10 = (GHIDRA_CAST<msvc::string *>((pcVar4)))->msvc::string::c_str();
|
||||
iVar3 = (GHIDRA_CAST<Font *>((font)))->Font::GetStringWidth(pbVar10);
|
||||
iVar3 = Font::GetStringWidth(font,pbVar10);
|
||||
local_1bd = '\x01';
|
||||
if (g_screenWidth - 20.0 < (float)iVar3) goto LAB_00689e7f;
|
||||
}
|
||||
@@ -3559,7 +3559,7 @@ LAB_0068be32:
|
||||
lineEnd = *GHIDRA_CAST<uint8_t **>(lineEnd);
|
||||
}
|
||||
local_28._alpha = (float)local_3c;
|
||||
(GHIDRA_CAST<Font *>((font)))->Font::DrawString(lineEnd,&local_28,&fontSettings,textX,textY);
|
||||
Font::DrawString(font,lineEnd,&local_28,&fontSettings,textX,textY);
|
||||
textY = textY - unk;
|
||||
local_8 = 0xffffffff;
|
||||
pvVar6 = extraout_EAX_00;
|
||||
@@ -3763,7 +3763,7 @@ LAB_0068c393:
|
||||
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar7 + 0x14))) {
|
||||
pbVar2 = *GHIDRA_CAST<uint8_t **>(pbVar7);
|
||||
}
|
||||
pvVar1 = (GHIDRA_CAST<Font *>((local_80)))->Font::measure_string(&quadColor._green,pbVar2,&local_40,&g_vectorOne);
|
||||
pvVar1 = Font::measure_string(local_80,&quadColor._green,pbVar2,&local_40,&g_vectorOne);
|
||||
local_14 = GHIDRA_CAST<uint8_t ***>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),1));
|
||||
color._blue = 0.8862745;
|
||||
color._red = 0.5411765;
|
||||
@@ -3838,7 +3838,7 @@ LAB_0068c393:
|
||||
if (0xf < local_28) {
|
||||
ppppbVar4 = local_3c;
|
||||
}
|
||||
iVar8 = (GHIDRA_CAST<Font *>((local_80)))->Font::get_string_width_n(GHIDRA_CAST<uint8_t *>(ppppbVar4),-1);
|
||||
iVar8 = Font::get_string_width_n(local_80,GHIDRA_CAST<uint8_t *>(ppppbVar4),-1);
|
||||
cursorX = ((float)((double)iVar8 + __uint_to_double_fixup[-(iVar8 >> 0x1f)]) + 10.0) - 1.0;
|
||||
if (0xf < local_28) {
|
||||
uVar6 = local_28 + 1;
|
||||
@@ -3886,7 +3886,7 @@ LAB_0068c393:
|
||||
if (0xf < local_28) {
|
||||
ppppbVar4 = local_3c;
|
||||
}
|
||||
iVar8 = (GHIDRA_CAST<Font *>((local_80)))->Font::get_string_width_n(GHIDRA_CAST<uint8_t *>(ppppbVar4),-1);
|
||||
iVar8 = Font::get_string_width_n(local_80,GHIDRA_CAST<uint8_t *>(ppppbVar4),-1);
|
||||
cursorX = ((float)((double)iVar8 + __uint_to_double_fixup[-(iVar8 >> 0x1f)]) + 10.0) - 1.0;
|
||||
if (0xf < local_28) {
|
||||
uVar6 = local_28 + 1;
|
||||
@@ -3926,7 +3926,7 @@ LAB_0068c99b:
|
||||
if (0xf < lineTextCapacity) {
|
||||
ppppbVar4 = lineText[0];
|
||||
}
|
||||
pvVar1 = (GHIDRA_CAST<Font *>((local_80)))->Font::measure_string(&quadColor._green,GHIDRA_CAST<uint8_t *>(ppppbVar4),&local_40,&g_vectorOne)
|
||||
pvVar1 = Font::measure_string(local_80,&quadColor._green,GHIDRA_CAST<uint8_t *>(ppppbVar4),&local_40,&g_vectorOne)
|
||||
;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 7;
|
||||
color_01._blue = 0.18431373;
|
||||
@@ -6993,7 +6993,7 @@ LAB_006926e9:
|
||||
}
|
||||
if (cursor == GHIDRA_CAST<char *>((param_1[4] + GHIDRA_INT(lineText)))) break;
|
||||
charText[0] = *cursor;
|
||||
iVar4 = (GHIDRA_CAST<Font *>((local_18)))->Font::get_string_width_n(charText,-1);
|
||||
iVar4 = Font::get_string_width_n(local_18,charText,-1);
|
||||
lineWidth = lineWidth + iVar4;
|
||||
if (g_screenWidth - 20.0 <
|
||||
(float)((double)lineWidth + __uint_to_double_fixup[-(lineWidth >> 0x1f)])) {
|
||||
|
||||
Reference in new issue
Block a user