Curation round 2, wave B: ItemConfig, EntityConfig, mods, Manager and the KAGE platform on SDL3; boots to LuaEngine::Init

- item_config, entity_config and mod_manager take over their families as idiomatic classes (std containers,
  unique_ptr, bitset tear flags). Every big loader reads the imported JSON: entities2.xml gives 1349 entities.
- manager.h/.cpp take over Manager (g_manager) and IsaacStartup. Members are the curated subsystems by value.
- kage_graphics, kage_input and kage_sound take over KAGE's graphics (shaders, render targets, batches, PNG through
  stb_image), input (SDL3 keyboard, mouse, gamepads) and sound (SDL3 audio, wav and stb_vorbis ogg, pitch and volume).
- source_tree.py: classes inside a namespace block in src/ headers count as taken over, and a still-generated class's
  vtable slot keeps its stub unless src/ defines that exact method.
build/isaac opens the window, sets up GL 4.6, framebuffers and PulseAudio, logs the version, and stops at
LuaEngine::Init. 522 functions taken over, boot path 156/615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 00:03:39 -05:00
1 parent 346dc95e13
commit 28e2e48842
105 files changed
+7008 -31418

No files matched your search

-151
View File
@@ -1,156 +1,5 @@
#include "classes.h"
// 0069d290
void Menu_Mods::Update()
{
std_string *displayName;
uint8_t *b;
void *freeBlock;
uint32_t size;
uint8_t *nameSize;
int playersBegin;
uint8_t *a;
int iVar2;
int playersEnd;
uint8_t local_74 [4];
uint32_t playerIndex;
Menu_Mods *self;
uint8_t *nameMapHead;
uint32_t local_64;
uint8_t *local_60;
uint32_t local_5c;
void *displayNameBuf [3];
uint8_t local_4c [8];
uint8_t *local_44;
void *nameKey;
uint32_t uStack_3c;
uint32_t uStack_38;
uint32_t uStack_34;
uint32_t nameKeySize;
uint32_t nameKeyCapacity;
uint32_t local_28;
uint32_t securityCookie;
uint8_t *puStack_20;
void *local_1c;
uint8_t *puStack_18;
uint32_t local_14;
uint32_t *nameSize;
EntityConfig_Player *playerConfig;
puStack_20 = local_4c + 0x48;
local_14 = 0xffffffff;
puStack_18 = &LAB_00af9dbd;
local_1c = ExceptionList;
securityCookie = __security_cookie ^ GHIDRA_UINT((local_4c + 0x3c));
ExceptionList = &local_1c;
nameMapHead = GHIDRA_CAST<uint8_t *>(0x0);
local_64 = 0;
self = this;
nameMapHead = operator_new(0x2c);
*GHIDRA_CAST<uint8_t **>(nameMapHead) = nameMapHead;
*GHIDRA_CAST<uint8_t **>((nameMapHead + 4)) = nameMapHead;
*GHIDRA_CAST<uint8_t **>((nameMapHead + 8)) = nameMapHead;
*GHIDRA_CAST<uint16_t *>((nameMapHead + 0xc)) = 0x101;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
playersEnd = *GHIDRA_CAST<int *>((this + 4));
playersBegin = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2))));
local_5c = 0x29;
local_60 = nameMapHead;
if (0x29 < GHIDRA_UINT(((playersEnd - playersBegin) / 0x148))) {
iVar2 = 0x3488;
do {
playerConfig = GHIDRA_CAST<EntityConfig_Player *>((iVar2 + playersBegin));
if ((*GHIDRA_CAST<char *>((iVar2 + 0x128 + playersBegin)) == '\0') &&
((playerConfig->_bSkinParentName)._size == 0)) {
displayName = EntityConfig_Player::GetDisplayName
(playerConfig,GHIDRA_CAST<std_string *>(displayNameBuf),playerConfig);
nameKey = *(void **)displayName->_buf;
uStack_3c = *GHIDRA_CAST<uint32_t *>((displayName->_buf + 4));
uStack_38 = *GHIDRA_CAST<uint32_t *>((displayName->_buf + 8));
uStack_34 = *GHIDRA_CAST<uint32_t *>((displayName->_buf + 0xc));
nameKeySize = displayName->_size;
nameKeyCapacity = displayName->_capacity;
displayName->_size = 0;
displayName->_capacity = 0xf;
displayName->_buf[0] = '\0';
local_28 = local_5c;
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 2;
FUN_006a00d0(local_74,&nameKey);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 1;
if (0xf < nameKeyCapacity) {
size = nameKeyCapacity + 1;
freeBlock = nameKey;
if (0xfff < size) {
freeBlock = *(void **)(GHIDRA_CAST<char *>(nameKey) + -4);
size = nameKeyCapacity + 0x24;
if (0x1f < GHIDRA_UINT((GHIDRA_INT(nameKey) + (-4 - GHIDRA_INT(freeBlock))))) goto LAB_0069d502;
}
operator_delete(freeBlock,size);
}
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0;
if (&DAT_0000000f < local_44) {
nameSize = local_44 + 1;
freeBlock = displayNameBuf[0];
if (GHIDRA_CAST<uint8_t *>(0xfff) < nameSize) {
freeBlock = *(void **)(GHIDRA_INT(displayNameBuf[0]) + -4);
nameSize = local_44 + 0x24;
if (0x1f < GHIDRA_UINT((GHIDRA_INT(displayNameBuf[0]) + (-4 - GHIDRA_INT(freeBlock))))) {
LAB_0069d502:
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(freeBlock,GHIDRA_UINT(nameSize));
}
}
iVar2 = iVar2 + 0x148;
local_5c = local_5c + 1;
playersEnd = *GHIDRA_CAST<int *>((self + 4));
playersBegin = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(self[2])) + 0x2))));
} while (local_5c < GHIDRA_UINT(((playersEnd - playersBegin) / 0x148)));
local_60 = nameMapHead;
}
playerIndex = 0x29;
nameSize = local_60;
nameMapHead = local_60;
if (0x29 < GHIDRA_UINT(((playersEnd - playersBegin) / 0x148))) {
local_5c = 0x3488;
do {
if ((*GHIDRA_CAST<char *>((local_5c + 0x128 + playersBegin)) == '\0') &&
(*GHIDRA_CAST<int *>((local_5c + 0x11c + playersBegin)) != 0)) {
a = GHIDRA_CAST<uint8_t *>((playersBegin + local_5c + 0x10c));
msvc::map<msvc::string>::_Find_lower_bound(local_4c,a);
nameSize = local_44;
if (local_44[0xd] == '\0') {
b = local_44 + 0x10;
if (0xf < *GHIDRA_CAST<uint32_t *>((local_44 + 0x24))) {
b = *GHIDRA_CAST<uint8_t **>(b);
}
nameSize = GHIDRA_CAST<uint32_t *>((a + 0x10));
if (0xf < *GHIDRA_CAST<uint32_t *>((a + 0x14))) {
a = *GHIDRA_CAST<uint8_t **>(a);
}
playersBegin = string_compare(a,*nameSize,b,*GHIDRA_CAST<uint32_t *>((local_44 + 0x20)));
if ((-1 < playersBegin) && (nameSize != local_60)) {
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((nameSize + 0x28)) * 0x148 + 0x124 + *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(self[2])) + 0x2)))))) =
playerIndex;
local_60 = nameMapHead;
}
}
nameSize = local_60;
}
local_5c = local_5c + 0x148;
playerIndex = playerIndex + 1;
playersBegin = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(self[2])) + 0x2))));
} while (playerIndex < GHIDRA_UINT(((*GHIDRA_CAST<int *>((self + 4)) - playersBegin) / 0x148)));
}
msvc::map<msvc::string_int>::_Erase_tree(&nameMapHead,*GHIDRA_CAST<uint32_t *>((nameSize + 4)));
operator_delete(nameMapHead,0x2c);
ExceptionList = local_1c;
return;
}
// 008e4970
void Menu_Mods::reset()
{