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:
1 parent
8c31c98a81
commit
837aa06518
63 files changed
+10557
-12054
No files matched your search
@@ -59,117 +59,3 @@ RichText::~RichText()
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
|
||||
// 009efb60
|
||||
void RichText::load_font(std_string *fontPath)
|
||||
{
|
||||
void *newIconsAnm = this;
|
||||
ANM2 *pAVar1;
|
||||
uint8_t *pbVar2;
|
||||
char extraout_AL;
|
||||
ANM2 *newIconsAnm;
|
||||
void *mapHead;
|
||||
char *pcVar3;
|
||||
int iconsAnm;
|
||||
uint32_t size;
|
||||
std_string anmPath;
|
||||
uint8_t fontPathLocal [268];
|
||||
uint32_t local_24;
|
||||
uint8_t *puStack_20;
|
||||
void *local_1c;
|
||||
uint8_t *puStack_18;
|
||||
uint32_t local_14;
|
||||
uint32_t *srcSize;
|
||||
|
||||
puStack_20 = fontPathLocal + 300;
|
||||
local_14 = 0xffffffff;
|
||||
puStack_18 = &LAB_00b0ff00;
|
||||
local_1c = ExceptionList;
|
||||
local_24 = __security_cookie ^ GHIDRA_UINT((fontPathLocal + 0x120));
|
||||
ExceptionList = &local_1c;
|
||||
pbVar2 = fontPathLocal + 300;
|
||||
if (newIconsAnm != fontPath) {
|
||||
srcSize = &fontPath->_size;
|
||||
if (0xf < fontPath->_capacity) {
|
||||
fontPath = *GHIDRA_CAST<std_string **>(fontPath->_buf);
|
||||
}
|
||||
(GHIDRA_CAST<msvc::string *>((newIconsAnm)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>(fontPath),*srcSize);
|
||||
pbVar2 = puStack_20;
|
||||
}
|
||||
puStack_20 = pbVar2;
|
||||
sprintf_s(fontPathLocal,0x104,&DAT_00b62fdc);
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>((GHIDRA_INT(newIconsAnm) + 0x18)))))->Font::Unload();
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>((GHIDRA_INT(newIconsAnm) + 0x18)))))->Font::Load(fontPathLocal,0);
|
||||
if (extraout_AL == '\0') {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Failed to load font: %s \n"));
|
||||
}
|
||||
iconsAnm = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(newIconsAnm) + 100));
|
||||
if (iconsAnm == 0) {
|
||||
newIconsAnm = operator_new(0x128);
|
||||
local_14 = 0;
|
||||
if (newIconsAnm == GHIDRA_CAST<ANM2 *>(0x0)) {
|
||||
newIconsAnm = GHIDRA_CAST<ANM2 *>(0x0);
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<ANM2 *>((newIconsAnm)))->ANM2::constructor();
|
||||
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),1);
|
||||
newIconsAnm[1]._filename._buf[0] = '\0';
|
||||
newIconsAnm[1]._filename._buf[1] = '\0';
|
||||
newIconsAnm[1]._filename._buf[2] = '\0';
|
||||
newIconsAnm[1]._filename._buf[3] = '\0';
|
||||
pAVar1 = newIconsAnm + 1;
|
||||
(pAVar1->_filename)._buf[4] = '\0';
|
||||
(pAVar1->_filename)._buf[5] = '\0';
|
||||
(pAVar1->_filename)._buf[6] = '\0';
|
||||
(pAVar1->_filename)._buf[7] = '\0';
|
||||
pAVar1 = newIconsAnm + 1;
|
||||
(pAVar1->_filename)._buf[8] = '\0';
|
||||
(pAVar1->_filename)._buf[9] = '\0';
|
||||
(pAVar1->_filename)._buf[10] = '\0';
|
||||
(pAVar1->_filename)._buf[0xb] = '\0';
|
||||
pcVar3 = newIconsAnm[1]._filename._buf + 0xc;
|
||||
pcVar3[0] = '\0';
|
||||
pcVar3[1] = '\0';
|
||||
pcVar3[2] = '\0';
|
||||
pcVar3[3] = '\0';
|
||||
newIconsAnm[1]._filename._size = 0;
|
||||
mapHead = operator_new(0x1c);
|
||||
*(void **)mapHead = mapHead;
|
||||
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
|
||||
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
|
||||
*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
|
||||
*(void **)pcVar3 = mapHead;
|
||||
}
|
||||
local_14 = 0xffffffff;
|
||||
*GHIDRA_CAST<ANM2 **>((GHIDRA_CAST<char *>(newIconsAnm) + 100)) = newIconsAnm;
|
||||
anmPath._size = 0;
|
||||
anmPath._capacity = 0xf;
|
||||
anmPath._buf[0] = '\0';
|
||||
anmPath._buf[1] = '\0';
|
||||
anmPath._buf[2] = '\0';
|
||||
anmPath._buf[3] = '\0';
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anmPath._buf)) + 0x0))) = msvc::_Allocate(0x20);
|
||||
anmPath._size = 0x16;
|
||||
anmPath._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anmPath._buf))) + 0x0))),"gfx/ui/text_icons.anm2",0x17);
|
||||
local_14 = 2;
|
||||
(GHIDRA_CAST<ANM2 *>((newIconsAnm)))->ANM2::Load(&anmPath,1);
|
||||
if (0xf < anmPath._capacity) {
|
||||
size = anmPath._capacity + 1;
|
||||
pcVar3 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anmPath._buf))) + 0x0)));
|
||||
if (0xfff < size) {
|
||||
pcVar3 = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anmPath._buf)) + 0x0))) + -4));
|
||||
size = anmPath._capacity + 0x24;
|
||||
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anmPath._buf)) + 0x0))) + (-4 - GHIDRA_INT(pcVar3))))) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
_invalid_parameter_noinfo_noreturn();
|
||||
}
|
||||
}
|
||||
operator_delete(pcVar3,size);
|
||||
}
|
||||
iconsAnm = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(newIconsAnm) + 100));
|
||||
}
|
||||
*GHIDRA_CAST<float *>((iconsAnm + 0x114)) = (float)*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(newIconsAnm) + 0x2c));
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
}
|
||||
Reference in new issue
Block a user