Curation round 4: popups, Seeds/Random, Game, KeyConfigs, offline NetplayManager, Console, TextureCache, render passes
Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34 installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the intro cutscene plays through and the main menu's frame loop runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ddf913f304
commit
fd8b965350
110 files changed
+6500
-40129
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
#include "lua_engine.h"
|
||||
#include "classes.h"
|
||||
#include "data.h"
|
||||
#include "game.h"
|
||||
#include "manager.h"
|
||||
#include "platform.h"
|
||||
#include <algorithm>
|
||||
@@ -111,7 +112,7 @@ static std::string error_pop(lua_State* state)
|
||||
static void error_log(const char* name, const std::string& error)
|
||||
{
|
||||
log_printf(LOG_INFO, "Error in \"%s\" call: %s\n", name, error.c_str());
|
||||
if (g_game) reconstruction_missing("Console::Print 006929e0, for a callback error");
|
||||
if (g_game) g_game->console.print_format(CONSOLE_ERROR, "\"%s\" failed: %s\n", name, error.c_str());
|
||||
}
|
||||
|
||||
// Calls _RunCallback with a callback's id, its filter parameter and its arguments when a mod added a function for it,
|
||||
@@ -341,7 +342,7 @@ bool LuaEngine::RunScript(std::string_view path)
|
||||
if (lua_type(state, -1) == LUA_TSTRING)
|
||||
{
|
||||
log_printf(LOG_INFO, "ERR: %s\n", lua_tostring(state, -1));
|
||||
if (g_game) reconstruction_missing("Console::PrintError 00692ed0, for a script error");
|
||||
if (g_game) g_game->console.PrintError(lua_tostring(state, -1));
|
||||
}
|
||||
lua_settop(state, 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user