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>
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#include "classes.h"
|
|
|
|
// 009f3290
|
|
IsaacRepentancePlus::Weapon::~Weapon()
|
|
{
|
|
Entity_Player *pEVar1;
|
|
Entity_Player *ownerPlayer;
|
|
EntityPtr *technology2LaserRef;
|
|
Weapon *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 uStack_8;
|
|
|
|
uStack_8 = 0xffffffff;
|
|
puStack_c = &LAB_00af09f0;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
pEVar1 = this->_owner;
|
|
*GHIDRA_CAST<undefined ***>(this) = vftable;
|
|
if ((((pEVar1 == GHIDRA_CAST<Entity_Player *>(0x0)) || (ownerPlayer = pEVar1, pEVar1->_type != 1)) &&
|
|
(ownerPlayer = GHIDRA_CAST<Entity_Player *>(0x0), pEVar1 != GHIDRA_CAST<Entity_Player *>(0x0))) && (pEVar1->_type == 3))
|
|
{
|
|
pEVar1->_chargeBarSprites[5]._numEvents = 0;
|
|
}
|
|
else if (ownerPlayer != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
|
local_14 = this;
|
|
::(GHIDRA_CAST<Entity_Player *>((ownerPlayer)))->Entity_Player::stop_costume_item_anims();
|
|
}
|
|
technology2LaserRef = &this->_technology2Laser;
|
|
if (*technology2LaserRef != (EntityPtr)0x0) {
|
|
local_14 = GHIDRA_CAST<Weapon *>(technology2LaserRef);
|
|
std::multiset<unsigned_int>::erase(&local_14);
|
|
*technology2LaserRef = (EntityPtr)0x0;
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|