From 152b00494b8afc5176ee7d40c5e9042b0e56ad8e Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Tue, 17 Nov 2026 09:25:15 +0300 Subject: [PATCH] The release compiles plugin_init.c per install: it reads the install's plugin records from patches.h (#845) make_release.py stopped at the runtime library: plugin_init.c includes patches.h, a per-version header, so the library build refused it. Built per install like patches.c, it sees the RT_PLUGINS and RT_PLUGIN_WRITES of the install's own rebuild. Co-Authored-By: Claude Opus 5.5 --- tools/build_game.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/build_game.py b/tools/build_game.py index 84e93682..38b356e8 100644 --- a/tools/build_game.py +++ b/tools/build_game.py @@ -188,8 +188,10 @@ DEFAULT_DEPS = ROOT / 'toolchain' / 'deps-mingw' # Runtime sources compiled per install, not in the library: romfs.c includes romfs_config.h, patches.c and ov_zstd.c # the patches.h of the player's game version (its patch page is the page after that version's main; ov_zstd.c's host # functions sit on it). mouse_direct.c and ov_ability.c also register host callbacks relative to that version's patch -# page. A library source that includes one of PER_VERSION_HEADERS stops the library build (library_sources). -INSTALL_SIDE = {'romfs.c', 'patches.c', 'ov_zstd.c', 'mouse_direct.c', 'ov_ability.c'} +# page. plugin_init.c reads the install's own plugin records from patches.h (RT_PLUGINS, RT_PLUGIN_WRITES): a mod plugin +# the rebuild built in. A library source that includes one of PER_VERSION_HEADERS stops the library build +# (library_sources). +INSTALL_SIDE = {'romfs.c', 'patches.c', 'ov_zstd.c', 'mouse_direct.c', 'ov_ability.c', 'plugin_init.c'} PER_VERSION_HEADERS = ('"patches.h"', '"romfs_config.h"') LIB_NAME = 'libtotkrt.a' AR = UCRT / 'llvm-ar.exe' if WIN else on_path('llvm-ar')