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

+2 -2
View File
@@ -4079,7 +4079,7 @@ void Entity::AddCharmed(EntityRef *ref, int duration, uint8_t ignoreBossStatusCo
} while (iVar5 != 0);
game = g_game;
if (2 < uStack_4c) {
(GHIDRA_CAST<PersistentGameData *>((&g_manager->_persistentGameData)))->PersistentGameData::TryUnlock(0x183);
PersistentGameData::TryUnlock(&g_manager->_persistentGameData,0x183);
game = g_game;
}
}
@@ -5637,7 +5637,7 @@ LAB_006affca:
while ((local_320 = GHIDRA_CAST<ItemPool *>(local_318), local_318 == GHIDRA_CAST<float *>(0x0) ||
(cVar6 = (**(code **)(GHIDRA_INT(*pfStack_30c) + 0x2c))(local_318), cVar6 != '\0')
)) {
local_318 = GHIDRA_CAST<float *>((GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool)::GetTrinket(0);
local_318 = GHIDRA_CAST<float *>(ItemPool)::GetTrinket(&g_game->_itemPool,0);
}
}
}