Curation round 3: Lua engine, Manager, sound, menus, cutscenes, rooms, item pools, saves; boots past LuaEngine::Init

Seven agents took over LuaEngine (the mod API registration deferred), the rest of Manager (LoadConfigs, fonts, render
surfaces, Update/Render), MusicManager/SFXManager, MenuManager with the title/save/game menus, Cutscene/NightmareScene/
Backdrop, RoomConfig (src/rooms ported and retired) with ItemPool, and PersistentGameData (the original binary save
format) with InfoDisplay. An integration pass moved call sites to the new APIs, declared the taken-over free functions,
fixed two data.cpp crashes (an empty children array, null attribute strings), and made the generator keep a header's own
name where a prototype names another address. Clean build (0 warnings with -Wall -Wextra). build/isaac runs the game's
Lua scripts (without the mod API yet) and stops at reload_resource_paths. 901 functions taken over, boot path 204/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:53:08 -05:00
1 parent a7061306fa
commit ddf913f304
137 files changed
+12684 -50687

No files matched your search

+5 -5
View File
@@ -6801,7 +6801,7 @@ LAB_0052926a:
local_124 = local_114;
if (local_114 != 0.0) {
fnPtr = *(code **)(*GHIDRA_CAST<int *>(pEVar11) + 0x28);
(GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetPillEffect(GHIDRA_UINT(local_114),GHIDRA_CAST<Entity_Player *>(0x0));
ItemPool::GetPillEffect(&g_game->_itemPool,GHIDRA_UINT(local_114),GHIDRA_CAST<Entity_Player *>(0x0));
cVar6 = (*fnPtr)();
if (cVar6 == '\0') goto LAB_00529272;
pEVar11 = local_120;
@@ -6842,7 +6842,7 @@ LAB_005290ba:
if (uVar7 != 0x15e) goto LAB_0052926a;
while ((local_124 = local_114, local_114 == 0.0 ||
(cVar6 = pEVar11->guard_check_icall(), cVar6 != '\0'))) {
local_114 = (float)(GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetTrinket(0);
local_114 = (float)ItemPool::GetTrinket(&g_game->_itemPool,0);
}
}
}
@@ -7067,7 +7067,7 @@ LAB_00529876:
else if (fVar16 == 4.90454e-43) {
while ((piVar9 == GHIDRA_CAST<int *>(0x0) ||
(cVar6 = (**(code **)(*piVar1 + 0x2c))(piVar9), cVar6 != '\0'))) {
piVar9 = GHIDRA_CAST<int *>((GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool)::GetTrinket(0);
piVar9 = GHIDRA_CAST<int *>(ItemPool)::GetTrinket(&g_game->_itemPool,0);
}
}
}
@@ -12538,7 +12538,7 @@ void NpcHelper::ChampionDrop(Entity_NPC *npc)
uVar5 = uVar5 << ((uint8_t)(npc->_dropRNG)._shift2 & 0x1f) ^ uVar5;
uVar5 = uVar5 >> ((uint8_t)(local_120->_dropRNG)._shift3 & 0x1f) ^ uVar5;
dropRng->_seed = uVar5;
uVar6 = (GHIDRA_CAST<ItemPool *>((&game->_itemPool)))->ItemPool::ForceAddPillEffect(0x21);
uVar6 = ItemPool::ForceAddPillEffect(&game->_itemPool,0x21);
dropDir = Room::FindFreePickupSpawnPosition
(g_game->_room,GHIDRA_CAST<Vector *>(&local_c8),local_130,0.0,0,0,0);
npc = local_120;
@@ -12583,7 +12583,7 @@ void NpcHelper::ChampionDrop(Entity_NPC *npc)
uVar5 = uVar5 << ((uint8_t)(npc->_dropRNG)._shift2 & 0x1f) ^ uVar5;
uVar5 = uVar5 >> ((uint8_t)(local_120->_dropRNG)._shift3 & 0x1f) ^ uVar5;
dropRng->_seed = uVar5;
uVar6 = (GHIDRA_CAST<ItemPool *>((&game->_itemPool)))->ItemPool::ForceAddPillEffect(0x20);
uVar6 = ItemPool::ForceAddPillEffect(&game->_itemPool,0x20);
dropDir = Room::FindFreePickupSpawnPosition
(g_game->_room,GHIDRA_CAST<Vector *>(&local_c8),local_130,0.0,0,0,0);
npc = local_120;