Curation round 1: 66 boot-path functions rewritten in src/; the game links into a Linux executable

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>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-19 22:13:25 -05:00
1 parent 8c31c98a81
commit 837aa06518
63 files changed
+10557 -12054

No files matched your search

+1 -148
View File
@@ -1,93 +1,5 @@
#include "classes.h"
// 00722a80
ItemConfig_Item::ItemConfig_Item()
{
ItemConfig_Item *tail;
this->type = 0;
this->id = 0;
(this->name)._buf[0] = '\0';
(this->name)._buf[1] = '\0';
(this->name)._buf[2] = '\0';
(this->name)._buf[3] = '\0';
(this->name)._size = 0;
(this->name)._capacity = 0xf;
(this->desc)._buf[0] = '\0';
(this->desc)._buf[1] = '\0';
(this->desc)._buf[2] = '\0';
(this->desc)._buf[3] = '\0';
(this->desc)._size = 0;
(this->desc)._capacity = 0xf;
(this->gfxFilename)._buf[0] = '\0';
(this->gfxFilename)._buf[1] = '\0';
(this->gfxFilename)._buf[2] = '\0';
(this->gfxFilename)._buf[3] = '\0';
(this->gfxFilename)._size = 0;
(this->gfxFilename)._capacity = 0xf;
this->achievementId = 0;
this->cacheFlags = 0;
this->addMaxhearts = 0;
this->addHearts = 0;
this->addSoulHearts = 0;
this->addBlackHearts = 0;
this->addBombs = 0;
this->addKeys = 0;
this->addCoins = 0;
this->maxCharges = 0;
this->maxCooldown = 0;
this->devilprice = 1;
this->shopPrice = 0xf;
(this->costume).id = 0;
(this->costume).anm2Path._buf[0] = '\0';
(this->costume).anm2Path._buf[1] = '\0';
(this->costume).anm2Path._buf[2] = '\0';
(this->costume).anm2Path._buf[3] = '\0';
(this->costume).anm2Path._size = 0;
(this->costume).anm2Path._capacity = 0xf;
(this->costume).priority = 0;
(this->costume).hasOverlay = 0;
(this->costume).isFlying = 0;
(this->costume).hasSkinAlt = 0;
(this->costume).skinColor = -1;
*GHIDRA_CAST<uint16_t *>(&(this->costume).overwriteColor) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->costume))) + 0x2a))) = 0;
this->chargeType = 0;
this->special = 0;
this->passiveCache = 0;
this->addCostumeOnPickup = 1;
this->hidden = 0;
this->persistentEffect = 0;
this->clearEffectsOnRemove = 1;
*GHIDRA_CAST<uint32_t *>(&this->tags) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&this->tags) + 4)) = 0;
this->quality = 0;
this->craftingQuality = 0;
this->_initCharge = -1;
this[1].type = 0;
this[1].id = 0;
this[1].name._buf[0] = '\0';
this[1].name._buf[1] = '\0';
this[1].name._buf[2] = '\0';
this[1].name._buf[3] = '\0';
tail = this + 1;
(tail->name)._buf[4] = '\0';
(tail->name)._buf[5] = '\0';
(tail->name)._buf[6] = '\0';
(tail->name)._buf[7] = '\0';
tail = this + 1;
(tail->name)._buf[8] = -1;
(tail->name)._buf[9] = -1;
(tail->name)._buf[10] = -1;
(tail->name)._buf[0xb] = -1;
tail = this + 1;
(tail->name)._buf[0xc] = '\0';
(tail->name)._buf[0xd] = '\0';
(tail->name)._buf[0xe] = '\0';
(tail->name)._buf[0xf] = '\0';
return this;
}
// 00722c10
ItemConfig_Item::~ItemConfig_Item()
{
@@ -100,7 +12,7 @@ ItemConfig_Item::~ItemConfig_Item()
operator_delete(ownedCostume,0x198);
this[1].type = 0;
}
FUN_00731160();
msvc::vector<LocustEntry>::_Tidy();
(GHIDRA_CAST<msvc::string *>(((this->costume).anm2Path._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>(((this->gfxFilename)._buf)))->msvc::string::_Tidy_deallocate();
(GHIDRA_CAST<msvc::string *>(((this->desc)._buf)))->msvc::string::_Tidy_deallocate();
@@ -108,65 +20,6 @@ ItemConfig_Item::~ItemConfig_Item()
return;
}
// 0072ff10
std_string * ItemConfig_Item::GetLocalizedName(std_string *outName, int language)
{
std_string *text;
std_string *textEnd;
int resolvedLanguage;
char *ch;
StringTable *stringTable;
if ((this->name)._size == 0) {
outName->_buf[0] = '\0';
outName->_buf[1] = '\0';
outName->_buf[2] = '\0';
outName->_buf[3] = '\0';
outName->_size = 0;
outName->_capacity = 0xf;
outName->_buf[0] = '\0';
outName->_size = 0;
outName->_buf[0] = '\0';
return outName;
}
resolvedLanguage = language;
if (language == 0x14) {
resolvedLanguage = *GHIDRA_CAST<int *>(&g_manager->_stringTable);
}
text = &this->name;
if (0xf < (this->name)._capacity) {
text = *GHIDRA_CAST<std_string **>(text->_buf);
}
stringTable = &g_manager->_stringTable;
if (text->_buf[0] == '#') {
language = language & 0xffffff;
StringTable::get_string
(stringTable,GHIDRA_CAST<uint8_t *>("Items"),resolvedLanguage,GHIDRA_CAST<uint8_t *>((text->_buf + 1)),
GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&language) + 3)));
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(language)) + 0x3))) == '\0') {
language = language & 0xffffff;
text = (std_string *)
StringTable::get_string
(stringTable,GHIDRA_CAST<uint8_t *>("Items"),resolvedLanguage,GHIDRA_CAST<uint8_t *>((text->_buf + 1)),
GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&language) + 3)));
}
}
outName->_buf[0] = '\0';
outName->_buf[1] = '\0';
outName->_buf[2] = '\0';
outName->_buf[3] = '\0';
outName->_size = 0;
outName->_capacity = 0xf;
outName->_buf[0] = '\0';
textEnd = text;
do {
ch = textEnd->_buf;
textEnd = GHIDRA_CAST<std_string *>((textEnd->_buf + 1));
} while (*ch != '\0');
(GHIDRA_CAST<msvc::string *>((outName->_buf)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>(text),GHIDRA_INT(textEnd) - GHIDRA_INT((text->_buf + 1)));
return outName;
}
// 007307b0
uint8_t ItemConfig_Item::is_mom_item()
{