Files
isaac-port/generated-src/weapon_urn_of_souls.cpp
T
shweetandClaude Opus 5.5 ddf913f304 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>
2026-11-20 00:53:08 -05:00

46 lines
1.3 KiB
C++

#include "classes.h"
// 009f3170
uint32_t Weapon_UrnOfSouls::GetMainEntity()
{
return *GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(this) + 0x4c));
}
// 00a0f410
void Weapon_UrnOfSouls::Reset()
{
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x44)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x48)) = 0;
return;
}
// 00a0f420
void Weapon_UrnOfSouls::ClearReferences()
{
int *local_8;
int *entityRef;
entityRef = GHIDRA_CAST<int *>((GHIDRA_INT(this) + 8));
local_8 = this;
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 8)) != GHIDRA_CAST<int *>(0x0)) {
(**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 8)) + 0x28))();
if (*entityRef != 0) {
local_8 = entityRef;
msvc::multiset<unsigned_int>::erase(&local_8);
*entityRef = 0;
}
}
entityRef = GHIDRA_CAST<int *>((GHIDRA_INT(this) + 0x4c));
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x4c)) != GHIDRA_CAST<int *>(0x0)) {
(**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x4c)) + 0x28))();
if (*entityRef != 0) {
local_8 = entityRef;
msvc::multiset<unsigned_int>::erase(&local_8);
*entityRef = 0;
}
}
SFXManager::Stop(&g_manager->_sfxManager,0x216);
SFXManager::Stop(&g_manager->_sfxManager,0x217);
return;
}