Files
isaac-port/generated-src/menu_dialog.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

77 lines
3.8 KiB
C++

#include "classes.h"
// 009c3f30
void MenuDialog::constructor()
{
void *mapHead;
void *local_10;
undefined1 *puStack_c;
undefined4 local_8;
local_8 = 0xffffffff;
puStack_c = &LAB_00b0edbc;
local_10 = ExceptionList;
ExceptionList = &local_10;
*GHIDRA_CAST<undefined4 *>(this) = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 4)))))->ANM2::constructor();
local_8 = 0;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x118)))))->ANM2::constructor();
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x22c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x230)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x234)) = 0;
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),2);
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x238)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x23c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x240)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x244)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x248)) = 0;
mapHead = operator_new(0x20);
*(void **)mapHead = mapHead;
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
*GHIDRA_CAST<undefined2 *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x244)) = mapHead;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x24c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x260)) = 0;
ExceptionList = local_10;
return;
}
// 009c4020
MenuDialog::~MenuDialog()
{
undefined4 *secondSprite;
void *local_10;
undefined1 *puStack_c;
undefined4 local_8;
ANM2 *secondSprite;
local_8 = 0xffffffff;
puStack_c = &LAB_00af1f50;
local_10 = ExceptionList;
ExceptionList = &local_10;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 4)))))->ANM2::Reset();
secondSprite = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x118));
(GHIDRA_CAST<ANM2 *>((secondSprite)))->ANM2::Reset();
secondSprite = GHIDRA_CAST<undefined4 *>((GHIDRA_INT(this) + 0x244));
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<std::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(secondSprite,(fuzzer_allocator<std::_Tree_node<unsigned_int,void*>_> *)secondSprite,
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x244)) + 4));
operator_delete((void *)*secondSprite,0x20);
vector_UserProfile_destroy((void *)(GHIDRA_INT(this) + 0x22c));
local_8 = 0;
(GHIDRA_CAST<ANM2 *>((secondSprite)))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x168)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x148)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x130)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>(secondSprite))))->std::string::_Tidy_deallocate();
local_8 = 1;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 4)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x54)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x34)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x1c)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 4)))))->std::string::_Tidy_deallocate();
ExceptionList = local_10;
return;
}