- 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>
56 lines
2.0 KiB
C++
56 lines
2.0 KiB
C++
#include "classes.h"
|
|
|
|
// 008e4970
|
|
void Menu_Mods::reset()
|
|
{
|
|
uint8_t bVar1;
|
|
uint8_t *currentName;
|
|
uint32_t compareResult;
|
|
uint8_t *defaultName;
|
|
bool isLess;
|
|
uint8_t *animData;
|
|
MenuManager *menuManager;
|
|
|
|
animData = *GHIDRA_CAST<uint8_t **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x16])) + 0x2))));
|
|
if (animData != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
currentName = animData;
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((animData + 0x14))) {
|
|
currentName = *GHIDRA_CAST<uint8_t **>(animData);
|
|
}
|
|
defaultName = &DAT_00b6767c;
|
|
do {
|
|
bVar1 = *currentName;
|
|
isLess = bVar1 < *defaultName;
|
|
if (bVar1 != *defaultName) {
|
|
LAB_008e49b0:
|
|
compareResult = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_008e49b5;
|
|
}
|
|
if (bVar1 == 0) break;
|
|
bVar1 = currentName[1];
|
|
isLess = bVar1 < defaultName[1];
|
|
if (bVar1 != defaultName[1]) goto LAB_008e49b0;
|
|
currentName = currentName + 2;
|
|
defaultName = defaultName + 2;
|
|
} while (bVar1 != 0);
|
|
compareResult = 0;
|
|
LAB_008e49b5:
|
|
if ((compareResult == 0) && ((animData[0x34] == 0 || (*GHIDRA_CAST<char *>((this + 0x1c)) != '\0'))))
|
|
goto LAB_008e49e2;
|
|
}
|
|
bVar1 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))),&DAT_00b6767c,1);
|
|
if (bVar1 != 0) {
|
|
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x15])) + 0x1)))));
|
|
*GHIDRA_CAST<uint8_t *>((this + 0x1c)) = 1;
|
|
}
|
|
LAB_008e49e2:
|
|
menuManager = g_menuManager;
|
|
*GHIDRA_CAST<uint32_t *>(this) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = 0;
|
|
menuManager->_viewPositionSet[7].y = -216.0;
|
|
menuManager->_state = 1;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x62])) + 0x2)))) = g_manager->_modManager;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x61])) + 0x1))) = 0;
|
|
return;
|
|
}
|