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
+7
-5
@@ -1,6 +1,7 @@
|
||||
#include "classes.h"
|
||||
#include "data.h"
|
||||
#include "gl.h"
|
||||
#include "manager.h"
|
||||
#include "platform.h"
|
||||
#include <SDL3/SDL_video.h>
|
||||
#include <cstdio>
|
||||
@@ -54,12 +55,13 @@ int IsaacMain(int argc, uint8_t** argv)
|
||||
if (gl.ClampColor && (SDL_GL_ExtensionSupported(CLAMP_COLOR_EXTENSION) || gl_version_get() >= CLAMP_COLOR_VERSION))
|
||||
gl.ClampColor(GL_CLAMP_VERTEX_COLOR, GL_FALSE);
|
||||
|
||||
FontKerningPair::IsaacStartup(argc, argv);
|
||||
IsaacStartup(argc, argv);
|
||||
while (true)
|
||||
{
|
||||
g_manager->_framesPerSecond = platform.frame_begin();
|
||||
KAGE::System::update();
|
||||
Manager::Update(1);
|
||||
g_manager->framesPerSecond = platform.frame_begin();
|
||||
// 00a714e0 KAGE::System::update ran here without polling input: its video clips, lobby commands, deferred heap
|
||||
// frees and EOS tick have nothing to run, and the log is flushed with every message.
|
||||
Manager::Update();
|
||||
g_manager->Render();
|
||||
if (g_game) FUN_008657c0();
|
||||
if (platform.isQuitRequested) break;
|
||||
@@ -67,7 +69,7 @@ int IsaacMain(int argc, uint8_t** argv)
|
||||
}
|
||||
|
||||
Isaac::Shutdown();
|
||||
kage_shutdown();
|
||||
platform.engine_shutdown();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user