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
@@ -114,104 +114,3 @@ void Quad::scale(Vector *pivot, Vector *scale)
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// 00a10ab0
|
||||
uint8_t Quad::is_on_screen()
|
||||
{
|
||||
float fVar1;
|
||||
float screenHeight;
|
||||
float screenWidth;
|
||||
float local_XMM1_Da_199;
|
||||
float local_XMM1_Da_295;
|
||||
float local_XMM2_Da_166;
|
||||
float local_XMM2_Da_283;
|
||||
float local_XMM4_Da_276;
|
||||
float local_XMM6_Da_291;
|
||||
float local_XMM7_Da_287;
|
||||
|
||||
if ((g_graphicsManager_renderTarget == (void *)0x0) || ((g_graphicsManager_flags & 0x20) != 0)) {
|
||||
screenWidth = DAT_00c7997c;
|
||||
}
|
||||
else {
|
||||
screenWidth = (float)((double)*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_graphicsManager_renderTarget) + 0x10)) +
|
||||
__uint_to_double_fixup
|
||||
[-(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_graphicsManager_renderTarget) + 0x10)) >> 0x1f)]);
|
||||
}
|
||||
if ((g_graphicsManager_renderTarget == (void *)0x0) || ((g_graphicsManager_flags & 0x20) != 0)) {
|
||||
screenHeight = DAT_00c79980;
|
||||
}
|
||||
else {
|
||||
screenHeight = (float)((double)*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_graphicsManager_renderTarget) + 0x14)) +
|
||||
__uint_to_double_fixup
|
||||
[-(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_graphicsManager_renderTarget) + 0x14)) >> 0x1f)]);
|
||||
}
|
||||
local_XMM1_Da_295 = *GHIDRA_CAST<float *>(this);
|
||||
local_XMM1_Da_199 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 8));
|
||||
fVar1 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10));
|
||||
local_XMM2_Da_283 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 4));
|
||||
local_XMM7_Da_287 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0xc));
|
||||
local_XMM6_Da_291 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14));
|
||||
local_XMM2_Da_166 = local_XMM1_Da_295;
|
||||
if (local_XMM1_Da_295 <= 0.0) {
|
||||
local_XMM2_Da_166 = 0.0;
|
||||
}
|
||||
if (screenWidth <= local_XMM1_Da_295) {
|
||||
local_XMM1_Da_295 = screenWidth;
|
||||
}
|
||||
local_XMM4_Da_276 = local_XMM1_Da_199;
|
||||
if (local_XMM1_Da_199 <= local_XMM2_Da_166) {
|
||||
local_XMM4_Da_276 = local_XMM2_Da_166;
|
||||
}
|
||||
if (local_XMM1_Da_295 <= local_XMM1_Da_199) {
|
||||
local_XMM1_Da_199 = local_XMM1_Da_295;
|
||||
}
|
||||
local_XMM1_Da_295 = fVar1;
|
||||
if (fVar1 <= local_XMM4_Da_276) {
|
||||
local_XMM1_Da_295 = local_XMM4_Da_276;
|
||||
}
|
||||
if (local_XMM1_Da_199 <= fVar1) {
|
||||
fVar1 = local_XMM1_Da_199;
|
||||
}
|
||||
local_XMM1_Da_199 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x18));
|
||||
local_XMM2_Da_166 = local_XMM1_Da_199;
|
||||
if (local_XMM1_Da_199 <= local_XMM1_Da_295) {
|
||||
local_XMM2_Da_166 = local_XMM1_Da_295;
|
||||
}
|
||||
if (fVar1 <= local_XMM1_Da_199) {
|
||||
local_XMM1_Da_199 = fVar1;
|
||||
}
|
||||
fVar1 = local_XMM2_Da_283;
|
||||
if (screenHeight <= local_XMM2_Da_283) {
|
||||
fVar1 = screenHeight;
|
||||
}
|
||||
local_XMM1_Da_295 = local_XMM7_Da_287;
|
||||
if (fVar1 <= local_XMM7_Da_287) {
|
||||
local_XMM1_Da_295 = fVar1;
|
||||
}
|
||||
fVar1 = local_XMM6_Da_291;
|
||||
if (local_XMM1_Da_295 <= local_XMM6_Da_291) {
|
||||
fVar1 = local_XMM1_Da_295;
|
||||
}
|
||||
local_XMM1_Da_295 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x1c));
|
||||
local_XMM4_Da_276 = local_XMM1_Da_295;
|
||||
if (fVar1 <= local_XMM1_Da_295) {
|
||||
local_XMM4_Da_276 = fVar1;
|
||||
}
|
||||
if (local_XMM2_Da_283 <= 0.0) {
|
||||
local_XMM2_Da_283 = 0.0;
|
||||
}
|
||||
if (local_XMM7_Da_287 <= local_XMM2_Da_283) {
|
||||
local_XMM7_Da_287 = local_XMM2_Da_283;
|
||||
}
|
||||
if (local_XMM6_Da_291 <= local_XMM7_Da_287) {
|
||||
local_XMM6_Da_291 = local_XMM7_Da_287;
|
||||
}
|
||||
if (local_XMM1_Da_295 <= local_XMM6_Da_291) {
|
||||
local_XMM1_Da_295 = local_XMM6_Da_291;
|
||||
}
|
||||
if ((((local_XMM1_Da_199 < screenWidth) && (0.0 < local_XMM2_Da_166)) &&
|
||||
(local_XMM4_Da_276 < screenHeight)) && (0.0 < local_XMM1_Da_295)) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user