Curation round 2, wave B: ItemConfig, EntityConfig, mods, Manager and the KAGE platform on SDL3; boots to LuaEngine::Init

- item_config, entity_config and mod_manager take over their families as idiomatic classes (std containers,
  unique_ptr, bitset tear flags). Every big loader reads the imported JSON: entities2.xml gives 1349 entities.
- manager.h/.cpp take over Manager (g_manager) and IsaacStartup. Members are the curated subsystems by value.
- kage_graphics, kage_input and kage_sound take over KAGE's graphics (shaders, render targets, batches, PNG through
  stb_image), input (SDL3 keyboard, mouse, gamepads) and sound (SDL3 audio, wav and stb_vorbis ogg, pitch and volume).
- source_tree.py: classes inside a namespace block in src/ headers count as taken over, and a still-generated class's
  vtable slot keeps its stub unless src/ defines that exact method.
build/isaac opens the window, sets up GL 4.6, framebuffers and PulseAudio, logs the version, and stops at
LuaEngine::Init. 522 functions taken over, boot path 156/615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 00:03:39 -05:00
1 parent 346dc95e13
commit 28e2e48842
105 files changed
+7008 -31418

No files matched your search

+5 -5
View File
@@ -722,7 +722,7 @@ void HUD::rebuild_player_item_icons(void *iconCaches, uint32_t playerIdx, uint8_
local_30 = GHIDRA_CAST<int *>(*historyEntry);
LAB_0083b473:
trinketId = 0;
itemConfig = (GHIDRA_CAST<ItemConfig *>((&g_manager->_itemConfig)))->ItemConfig::GetCollectible(GHIDRA_INT(local_30));
itemConfig = ItemConfig::GetCollectible(&g_manager->_itemConfig,GHIDRA_INT(local_30));
piVar1 = local_30;
}
else {
@@ -1446,7 +1446,7 @@ LAB_0083cc10:
LAB_0083cc16:
iVar7 = iVar7 + -1;
if (iVar7 < 1) goto LAB_0083cc50;
itemConfig = (GHIDRA_CAST<ItemConfig *>((&g_manager->_itemConfig)))->ItemConfig::GetCollectible(iVar7);
itemConfig = ItemConfig::GetCollectible(&g_manager->_itemConfig,iVar7);
if (itemConfig != GHIDRA_CAST<ItemConfig_Item *>(0x0)) goto code_r0x0083cc39;
goto LAB_0083cc10;
}
@@ -1536,7 +1536,7 @@ LAB_0083d02f:
else if (iVar7 == 300) {
uVar10 = InfoDisplay::get_card();
*GHIDRA_CAST<uint32_t *>((this->_playerHUD + 4)) = uVar10;
card = (GHIDRA_CAST<ItemConfig *>((&manager->_itemConfig)))->ItemConfig::GetCard(*GHIDRA_CAST<int *>((local_e0->_playerHUD + 0x30)));
card = ItemConfig::GetCard(&manager->_itemConfig,*GHIDRA_CAST<int *>((local_e0->_playerHUD + 0x30)));
if (card != GHIDRA_CAST<ItemConfig_Card *>(0x0)) {
entityConfig = EntityConfig::GetEntity
(&g_manager->_entityConfig,5,300,card->pickupSubtype);
@@ -2401,7 +2401,7 @@ void HUD::LoadGraphics()
path._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(path._buf))) + 0x0))),"font/MPlus_12b.fnt",0x13);
local_14 = 0;
(GHIDRA_CAST<ModManager *>((GHIDRA_CAST<ModManager *>(&manager->_modManager))))->ModManager::TryRedirectPath(GHIDRA_CAST<std_string *>(tmpPath),&path);
ModManager::TryRedirectPath(GHIDRA_CAST<ModManager *>(&manager->_modManager),GHIDRA_CAST<std_string *>(tmpPath),&path);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 1;
redirectedPathChars = extraout_EAX;
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX + 0x14))) {
@@ -3248,7 +3248,7 @@ void HUD::ShowItemText(Entity_Player *player, ItemConfig_Item *item)
local_24 = __security_cookie ^ GHIDRA_UINT((local_6e + 0x5e));
ExceptionList = &local_1c;
local_c0 = item;
(GHIDRA_CAST<ItemConfig_Item *>((item)))->ItemConfig_Item::GetLocalizedName(&itemName,0x14);
ItemConfig_Item::GetLocalizedName(item,&itemName,0x14);
local_14 = 0;
ItemConfig_Item::get_localized_description(item,&itemDescription,unused);
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),1);