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
@@ -1654,7 +1654,7 @@ void Menu_Stats::update_stats_screen()
|
||||
if (0 < iVar1) {
|
||||
persistentData = &g_manager->_persistentGameData;
|
||||
do {
|
||||
bVar3 = (GHIDRA_CAST<PersistentGameData *>((persistentData)))->PersistentGameData::Unlocked(local_58);
|
||||
bVar3 = PersistentGameData::Unlocked(persistentData,local_58);
|
||||
iVar4 = extraout_EDX;
|
||||
if (bVar3 != 0) break;
|
||||
persistentData->_selectedAchievmentId = persistentData->_selectedAchievmentId + 1;
|
||||
@@ -1668,14 +1668,14 @@ void Menu_Stats::update_stats_screen()
|
||||
uVar5 = 1;
|
||||
do {
|
||||
if ((manager->_persistentGameData)._achievements[uVar5] != 0) {
|
||||
(GHIDRA_CAST<PersistentGameData *>((&manager->_persistentGameData)))->PersistentGameData::UnlockSteamAchievement(uVar5);
|
||||
PersistentGameData::UnlockSteamAchievement(&manager->_persistentGameData,uVar5);
|
||||
}
|
||||
persistentData = local_54;
|
||||
uVar5 = uVar5 + 1;
|
||||
} while (uVar5 < 0x282);
|
||||
local_54->_isAchievementScreenVisible = 1;
|
||||
ANM2::Play(&local_54->_achievementsSprite,GHIDRA_CAST<uint8_t *>("Appear"),0);
|
||||
bVar3 = (GHIDRA_CAST<PersistentGameData *>((&g_manager->_persistentGameData)))->PersistentGameData::Unlocked(local_58);
|
||||
bVar3 = PersistentGameData::Unlocked(&g_manager->_persistentGameData,local_58);
|
||||
if (bVar3 == 0) {
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_50)) + 0x14))) = msvc::_Allocate(0x30);
|
||||
local_2c = 5.74532e-44;
|
||||
|
||||
Reference in new issue
Block a user