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
@@ -1,28 +1,5 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 0082d290
|
||||
void * Spawn::PickEntry(float value)
|
||||
{
|
||||
uint8_t entryIndex;
|
||||
float weightSum;
|
||||
|
||||
entryIndex = 0;
|
||||
weightSum = 0.0;
|
||||
if (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(this) + 8)) != 0) {
|
||||
do {
|
||||
weightSum = weightSum + *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) + 8 + GHIDRA_UINT(entryIndex) * 0xc));
|
||||
if (value * *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0xc)) < weightSum) {
|
||||
return (void *)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) + GHIDRA_UINT(entryIndex) * 0xc);
|
||||
}
|
||||
entryIndex = entryIndex + 1;
|
||||
} while (entryIndex < *GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(this) + 8)));
|
||||
}
|
||||
KAGE_LogMessage(1,(uint8_t *)
|
||||
"[warn] RoomConfig::Spawn::PickEntry did not terminate properly. Picking first entry: (%d, %d, %d, %f)\n"
|
||||
);
|
||||
return *(void **)(GHIDRA_CAST<char *>(this) + 4);
|
||||
}
|
||||
|
||||
// 00872000
|
||||
void Spawn::Entries(uint32_t *param_1, int param_2)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user