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
@@ -6275,7 +6275,7 @@ LAB_006118d4:
|
||||
while ((local_128 = pickupSubtype, pickupSubtype == 0 ||
|
||||
(cVar6 = local_118->guard_check_icall(pickupSubtype), cVar6 != '\0')))
|
||||
{
|
||||
pickupSubtype = (GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetTrinket(0);
|
||||
pickupSubtype = ItemPool::GetTrinket(&g_game->_itemPool,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14528,7 +14528,7 @@ LAB_00623343:
|
||||
pfVar10 = GHIDRA_CAST<float *>(std)::min<float>();
|
||||
local_16c.y = *pfVar10 + 0.7;
|
||||
sfx = MusicManager::SFXManager();
|
||||
bVar1 = (GHIDRA_CAST<SFXManager *>((sfx)))->SFXManager::IsPlaying(0x393);
|
||||
bVar1 = SFXManager::IsPlaying(sfx,0x393);
|
||||
if (bVar1 == 0) {
|
||||
if (0 < this->_chargeLevel) {
|
||||
SoundEffects::PlayWithFartOverride(0x393,(float)local_11c,0,1,local_16c.y);
|
||||
@@ -14536,13 +14536,13 @@ LAB_00623343:
|
||||
}
|
||||
else if (this->_chargeLevel < 1) {
|
||||
sfx = MusicManager::SFXManager();
|
||||
(GHIDRA_CAST<SFXManager *>((sfx)))->SFXManager::Stop(0x393);
|
||||
SFXManager::Stop(sfx,0x393);
|
||||
}
|
||||
else {
|
||||
sfx = MusicManager::SFXManager();
|
||||
(GHIDRA_CAST<SFXManager *>((sfx)))->SFXManager::AdjustVolume(0x393,(float)local_11c);
|
||||
SFXManager::AdjustVolume(sfx,0x393,(float)local_11c);
|
||||
sfx = MusicManager::SFXManager();
|
||||
(GHIDRA_CAST<SFXManager *>((sfx)))->SFXManager::AdjustPitch(0x393,local_16c.y);
|
||||
SFXManager::AdjustPitch(sfx,0x393,local_16c.y);
|
||||
}
|
||||
break;
|
||||
case 0xe4:
|
||||
@@ -22260,7 +22260,7 @@ LAB_0063c921:
|
||||
if (uVar8 != 0x15e) goto LAB_0063cadf;
|
||||
while ((finalSubType = spawnSubType, spawnSubType == 0 ||
|
||||
(cVar6 = (**(code **)(*piVar10 + 0x2c))(spawnSubType), cVar6 != '\0'))) {
|
||||
spawnSubType = (GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::GetTrinket(0);
|
||||
spawnSubType = ItemPool::GetTrinket(&g_game->_itemPool,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25301,7 +25301,7 @@ LAB_006454c5:
|
||||
if (spawnVariant != GHIDRA_CAST<Entity_Familiar *>(0x15e)) goto LAB_00645675;
|
||||
while ((finalSubType = spawnSubType, spawnSubType == 0 ||
|
||||
(cVar6 = (**(code **)(*piVar10 + 0x2c))(spawnSubType), cVar6 != '\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