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:
1 parent
a7061306fa
commit
ddf913f304
137 files changed
+12684
-50687
No files matched your search
@@ -5100,7 +5100,7 @@ LAB_0066fcf0:
|
||||
if ((pEVar30 == GHIDRA_CAST<Entity_Projectile *>(tintedRockIdx)) &&
|
||||
(uVar10 = (GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>((room->_gridEntities + 0xee)))))->RNG::RandomInt(0x14), uVar10 == 0)) {
|
||||
persistentGameData = GHIDRA_CAST<PersistentGameData *>((GHIDRA_CAST<Room *>((GHIDRA_CAST<Room *>(g_manager))))->Room)::GetTopLeftPos();
|
||||
bVar4 = (GHIDRA_CAST<PersistentGameData *>((persistentGameData)))->PersistentGameData::Unlocked(0x143);
|
||||
bVar4 = PersistentGameData::Unlocked(persistentGameData,0x143);
|
||||
if (bVar4 != 0) {
|
||||
local_890 = GHIDRA_CAST<Room *>(0x16);
|
||||
}
|
||||
@@ -9475,7 +9475,7 @@ LAB_006b57d9:
|
||||
local_bc = spawnSubType;
|
||||
if (spawnSubType != 0) {
|
||||
pcVar1 = *(code **)(*piVar7 + 0x28);
|
||||
iVar10 = (GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetPillEffect(spawnSubType,GHIDRA_CAST<Entity_Player *>(0x0))
|
||||
iVar10 = ItemPool::GetPillEffect(&g_game->_itemPool,spawnSubType,GHIDRA_CAST<Entity_Player *>(0x0))
|
||||
;
|
||||
isBanned = (*pcVar1)(iVar10);
|
||||
if (isBanned == '\0') goto LAB_006b57e1;
|
||||
@@ -9517,7 +9517,7 @@ LAB_006b5635:
|
||||
if (uVar5 != 0x15e) goto LAB_006b57d9;
|
||||
while ((local_bc = spawnSubType, spawnSubType == 0 ||
|
||||
(isBanned = (**(code **)(*piVar7 + 0x2c))(spawnSubType), isBanned != '\0'))) {
|
||||
spawnSubType = (GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetTrinket(0);
|
||||
spawnSubType = ItemPool::GetTrinket(&g_game->_itemPool,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user