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
@@ -3242,8 +3242,8 @@ LAB_006b8f98:
|
||||
*childField = 0;
|
||||
}
|
||||
if ((iVar3 == 0x390) && ((this->_variant == 0 || (this->_variant == 10)))) {
|
||||
(GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::Stop(0x280);
|
||||
(GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::Stop(0x1b8);
|
||||
SFXManager::Stop(&g_manager->_sfxManager,0x280);
|
||||
SFXManager::Stop(&g_manager->_sfxManager,0x1b8);
|
||||
}
|
||||
}
|
||||
if (this->_pickupGhostsEntity != (void *)0x0) {
|
||||
@@ -3366,7 +3366,7 @@ LAB_006b93e7:
|
||||
}
|
||||
}
|
||||
if ((this->_type == 0x387) && (this->_variant == 10)) {
|
||||
(GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::Stop(0x1f7);
|
||||
SFXManager::Stop(&g_manager->_sfxManager,0x1f7);
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
@@ -5290,7 +5290,7 @@ LAB_006c1ea1:
|
||||
if (lootSubtype == 0) goto LAB_006c1ffb;
|
||||
LAB_006c1f71:
|
||||
if (isShouldAdvance != 0) {
|
||||
(GHIDRA_CAST<ItemPool *>((&g_game->_itemPool)))->ItemPool::RemoveTrinket(lootSubtype);
|
||||
ItemPool::RemoveTrinket(&g_game->_itemPool,lootSubtype);
|
||||
}
|
||||
local_ESI_258 = (GHIDRA_CAST<RNG *>((rng)))->RNG::Next();
|
||||
temp_3f540a64be = 0x15e;
|
||||
@@ -6028,7 +6028,7 @@ LAB_006c5358:
|
||||
iVar16 = 0x368;
|
||||
}
|
||||
sfx = MusicManager::SFXManager();
|
||||
(GHIDRA_CAST<SFXManager *>((sfx)))->SFXManager::Stop(iVar16);
|
||||
SFXManager::Stop(sfx,iVar16);
|
||||
PlaySound(this,iVar16,1.0,2,0,1.0);
|
||||
iVar16 = this->_type;
|
||||
if (iVar16 == 0x191) {
|
||||
@@ -8070,7 +8070,7 @@ LAB_006ca09e:
|
||||
(GHIDRA_CAST<Vector *>((&this->_pausePosition)))->Vector::operator_assign(tmpVec);
|
||||
if (this->_isBestiaryEncountered == 0) {
|
||||
entityList = GHIDRA_CAST<PersistentGameData *>((GHIDRA_CAST<Room *>((GHIDRA_CAST<Room *>(g_manager))))->Room)::GetTopLeftPos();
|
||||
(GHIDRA_CAST<PersistentGameData *>((entityList)))->PersistentGameData::TryAddBestiaryEncounter(this->_type,this->_variant);
|
||||
PersistentGameData::TryAddBestiaryEncounter(entityList,this->_type,this->_variant);
|
||||
this->_isBestiaryEncountered = 1;
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::IsFrame(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this->_config) + 0xd0)) * 2,this->_index);
|
||||
|
||||
Reference in new issue
Block a user