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:
1 parent
346dc95e13
commit
28e2e48842
105 files changed
+7008
-31418
No files matched your search
@@ -162,80 +162,3 @@ float InputManager::GetActionValue(int action, int controllerIndex, Entity *enti
|
||||
}
|
||||
return (float)action;
|
||||
}
|
||||
|
||||
// 00a20390
|
||||
void * InputManager::get_device(void *outDevice, int index)
|
||||
{
|
||||
int *piVar1;
|
||||
int *deviceSlot;
|
||||
int extraout_ECX;
|
||||
int extraout_ECX_00;
|
||||
int iVar2;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00b1154d;
|
||||
local_10 = ExceptionList;
|
||||
ExceptionList = &local_10;
|
||||
piVar1 = GHIDRA_CAST<int *>((GHIDRA_INT(this) + 0x14));
|
||||
if (piVar1 == GHIDRA_CAST<int *>(0x0)) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Invalid mutex object specified"));
|
||||
iVar2 = extraout_ECX;
|
||||
}
|
||||
else {
|
||||
(**(code **)(*piVar1 + 0xc))(0xffffffff,__security_cookie ^ GHIDRA_INT(register0x00000010) - 4U);
|
||||
iVar2 = extraout_ECX_00;
|
||||
}
|
||||
local_8 = 0;
|
||||
deviceSlot = *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 8));
|
||||
do {
|
||||
if (deviceSlot == *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0xc))) {
|
||||
KAGE::SmartPointer<InputDeviceBase>::SmartPointer(iVar2);
|
||||
local_8 = 2;
|
||||
LAB_00a2040e:
|
||||
(**(code **)(*piVar1 + 0x10))();
|
||||
ExceptionList = local_10;
|
||||
return outDevice;
|
||||
}
|
||||
iVar2 = *deviceSlot;
|
||||
if (*GHIDRA_CAST<int *>((iVar2 + 0xc)) == index) {
|
||||
FUN_00902d60(deviceSlot);
|
||||
local_8 = 1;
|
||||
goto LAB_00a2040e;
|
||||
}
|
||||
deviceSlot = deviceSlot + 2;
|
||||
} while( true );
|
||||
}
|
||||
|
||||
// 00a205a0
|
||||
uint8_t InputManager::is_device_connected(int deviceIndex)
|
||||
{
|
||||
char isLastRef;
|
||||
int *deviceResult;
|
||||
uint8_t local_1c [4];
|
||||
int *deviceRefCount;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
int devicePtr;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00af0cf0;
|
||||
local_10 = ExceptionList;
|
||||
ExceptionList = &local_10;
|
||||
deviceResult = GHIDRA_CAST<int *>((**(code **)(*GHIDRA_CAST<int *>(this) + 0x28)))
|
||||
(local_1c,deviceIndex,__security_cookie ^ GHIDRA_UINT((local_1c + 0x18)))
|
||||
;
|
||||
devicePtr = *deviceResult;
|
||||
local_8 = 0;
|
||||
if (deviceRefCount != GHIDRA_CAST<int *>(0x0)) {
|
||||
isLastRef = (**(code **)(*deviceRefCount + 0xc))();
|
||||
if ((isLastRef != '\0') && (g_inputDeviceRelease != (void *)0x0)) {
|
||||
(*g_inputDeviceRelease)(local_1c);
|
||||
}
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return devicePtr != 0;
|
||||
}
|
||||
Reference in new issue
Block a user