--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.4 KiB
C++
46 lines
1.4 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;
|
|
}
|
|
}
|
|
(GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::Stop(0x216);
|
|
(GHIDRA_CAST<SFXManager *>((&g_manager->_sfxManager)))->SFXManager::Stop(0x217);
|
|
return;
|
|
}
|