Files
isaac-port/generated-src/procedural_item_manager.cpp
T
shweetandClaude Opus 5.5 3ce74c6e2d Reconstruction layout: generated-src/ (generated) and src/ (curated), CMake, the first takeover: RNG
The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function
defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body.
src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read
from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT,
from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra).
structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:10:23 -05:00

44 lines
1.9 KiB
C++

#include "classes.h"
// 009dc750
ProceduralItemManager::~ProceduralItemManager()
{
ProceduralItemManager *indexSet = this;
std_set *this_00;
char cVar1;
undefined4 extraout_ECX;
void *local_10;
undefined1 *puStack_c;
undefined4 local_8;
local_8 = 0xffffffff;
puStack_c = &LAB_00b0f610;
local_10 = ExceptionList;
ExceptionList = &local_10;
KAGE::SmartPointer<RenderTargetBase>::reset(indexSet);
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX);
this_00 = &indexSet->_spawnTriggerTargets;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<std::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(this_00,(fuzzer_allocator<std::_Tree_node<unsigned_int,void*>_> *)this_00,
*(_Tree_node<unsigned_int,void*> **)(GHIDRA_INT((indexSet->_spawnTriggerTargets)._head) + 4));
operator_delete(this_00->_head,0x18);
FID_conflict__Tidy(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((indexSet)) + 0x1c))));
local_8 = 0;
if (*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((indexSet)) + 0x18)))) != GHIDRA_CAST<int *>(0x0)) {
cVar1 = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((indexSet)) + 0x18)))) + 0xc))();
if ((cVar1 != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
(*g_renderTargetReleaseFn)(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((indexSet)) + 0x14))));
}
}
local_8 = 1;
if (*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((indexSet)) + 0x10)))) != GHIDRA_CAST<int *>(0x0)) {
cVar1 = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>((indexSet)) + 0x10)))) + 0xc))();
if ((cVar1 != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
(*g_renderTargetReleaseFn)(&indexSet->_renderTarget);
}
}
FID_conflict__Tidy(indexSet);
ExceptionList = local_10;
return;
}