Six agents took over ANM2/AnimationState/LayerState, ItemConfig, EntityConfig, StringTable/Font/FormattedText/RichText, OptionsConfig/ChallengeParams and ModManager/ModEntry functions (FormattedText::parse checked against a transliteration of its assembly on 200,000 random inputs). 174 field rows and 32 names from the round are merged into db/. source_tree.py: a struct or class src/*.h defines is no longer emitted in classes.h (class takeover) and gets no stubs; data labels get stub definitions. build/isaac links (64-bit ELF) and stops at the first function not reconstructed: IsaacMain. Boot path 64/615 functions curated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
62 lines
2.8 KiB
C++
62 lines
2.8 KiB
C++
#include "classes.h"
|
|
|
|
// 009efa10
|
|
RichText::~RichText()
|
|
{
|
|
uint32_t *this_00;
|
|
int iVar1;
|
|
int iVar2;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t local_8;
|
|
ANM2 *iconSprite;
|
|
char *imageMap;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0feb0;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>((GHIDRA_INT(this) + 0x18)))))->Font::Unload();
|
|
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 100));
|
|
if (iVar1 != 0) {
|
|
iVar2 = *GHIDRA_CAST<int *>((iVar1 + 0x120));
|
|
msvc::map<unsigned_int_ImagePtr>::_Erase_tree(iVar1 + 0x120,*GHIDRA_CAST<uint32_t *>((iVar2 + 4)));
|
|
*GHIDRA_CAST<int *>((iVar2 + 4)) = iVar2;
|
|
*GHIDRA_CAST<int *>(iVar2) = iVar2;
|
|
*GHIDRA_CAST<int *>((iVar2 + 8)) = iVar2;
|
|
*GHIDRA_CAST<uint32_t *>((iVar1 + 0x124)) = 0;
|
|
iconSprite = *GHIDRA_CAST<ANM2 **>((GHIDRA_CAST<char *>(this) + 100));
|
|
if (iconSprite != GHIDRA_CAST<ANM2 *>(0x0)) {
|
|
imageMap = iconSprite[1]._filename._buf + 0xc;
|
|
local_8 = 0;
|
|
iVar1 = *GHIDRA_CAST<int *>(imageMap);
|
|
msvc::map<unsigned_int_ImagePtr>::_Erase_tree(imageMap,*GHIDRA_CAST<uint32_t *>((iVar1 + 4)));
|
|
*GHIDRA_CAST<int *>((iVar1 + 4)) = iVar1;
|
|
*GHIDRA_CAST<int *>(iVar1) = iVar1;
|
|
*GHIDRA_CAST<int *>((iVar1 + 8)) = iVar1;
|
|
iconSprite[1]._filename._size = 0;
|
|
(GHIDRA_CAST<ANM2 *>((iconSprite)))->ANM2::Reset();
|
|
msvc::map<unsigned_int_ImagePtr>::_Erase_tree(imageMap,*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(imageMap) + 4)));
|
|
operator_delete(*(void **)imageMap,0x1c);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),1);
|
|
(GHIDRA_CAST<ANM2 *>((iconSprite)))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((&iconSprite->_overlayAnimState)))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((&iconSprite->_animState)))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<msvc::string *>(((iconSprite->_animDefaultName)._buf)))->msvc::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(iconSprite))))->msvc::string::_Tidy_deallocate();
|
|
operator_delete(iconSprite,0x128);
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 100)) = 0;
|
|
}
|
|
}
|
|
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>((GHIDRA_INT(this) + 0x18)))))->Font::Unload();
|
|
this_00 = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(this) + 0x58));
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(this_00,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)this_00,
|
|
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x58)) + 4));
|
|
operator_delete((void *)*this_00,0x18);
|
|
FUN_004b3950();
|
|
this->msvc::string::_Tidy_deallocate();
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|