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
@@ -542,7 +542,7 @@ LAB_0096d7d2:
while ((pEStack_178 = GHIDRA_CAST<Entity *>(spawnGame[0]), spawnGame[0] == 0 ||
(isRejected = (**(code **)(pGStack_17c->_stage + 0x2c))(spawnGame[0]),
isRejected != '\0'))) {
spawnGame[0] = (GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetTrinket(0);
spawnGame[0] = ItemPool::GetTrinket(&g_game->_itemPool,0);
}
}
}
@@ -760,7 +760,7 @@ LAB_0096dc14:
else if (uVar11 == 0x15e) {
while ((fVar16 == 0.0 ||
(isRejected = (**(code **)(*piStack_180 + 0x2c))(fVar16), isRejected != '\0'))) {
fVar16 = (float)(GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetTrinket(0);
fVar16 = (float)ItemPool::GetTrinket(&g_game->_itemPool,0);
}
}
}
@@ -5720,7 +5720,7 @@ LAB_00978138:
if (((this->_variant == 1) && (this->_spawnerEntity != 0)) &&
(*GHIDRA_CAST<int *>((this->_spawnerEntity + 0x28)) == 0x193)) {
if (this->_dead == 0) {
bVar8 = (GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::IsPlaying(0x3cb);
bVar8 = SFXManager::IsPlaying(&g_manager->_sfxManager,0x3cb);
manager = g_manager;
if (bVar8 == 0) {
local_44 = GHIDRA_CAST<std_string *>(0x3cb);
@@ -5729,7 +5729,7 @@ LAB_00978138:
}
}
else {
(GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::Stop(0x3cb);
SFXManager::Stop(&g_manager->_sfxManager,0x3cb);
}
}
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::Update();
@@ -8393,7 +8393,7 @@ void Entity_Laser::Remove()
(**(code **)(*laserRef + 0x28))();
}
if ((this->_variant == 1) && (this->_spawnerType == 0x193)) {
(GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::Stop(0x3cb);
SFXManager::Stop(&g_manager->_sfxManager,0x3cb);
}
return;
}