Valiantsin Dzerakh and Claude Opus 5.5
d865000929
A mod plugin's init runs at every start and its hooks go on when it writes what the build recorded ( #845 )
...
After the design in #845 by itaskaev2, with one change: no image taken after a build-time run. When a
plugin's patch set is on, sdk's DT_INIT runs first, then the plugin's, in the environment of the service
run (rtld image below main, the QueryMemory view, the alias pool, process-memory aliases), then the game's
constructors. That is rtld's order on the Switch (oss-rtld, librtld/source/ld.cpp __rtld_modules_init
runs the modules from the last loaded to the first). sdk's first DT_INIT only registers it with its musl
and main's DT_INIT finishes it, so its flag stays 1 and it is not called a second time. The plugin keeps
its heap blocks, GOT and alias addresses.
The words the init wrote into the game modules and the plugin's .text after it are compared with
patches.h: equal, the set stays on; different, it goes off for this run, the reason is logged, the Mods
tab row says so and build-cache/plugins.stale has the next start run the rebuild. The branches written
into main's .text are taken back. mods.c reads build-cache/plugins.status: a built plugin's set joins its
mod's sets and the Mods tab order, a refused one keeps its mod off with the reason (the catalog texts in
en, ru, pt-BR, zh-Hans), a plugin without a line waits for the rebuild. A plugin file changed after the
build is left out by the loader. TOTK_PLUGIN_TRACE=1 logs the first call of each hook entry.
Without a plugin in the build nothing of this runs. --probe-mods covers a plugin set against another mod's
patch on one site, a refused plugin, one the build lacks and one whose start differs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-17 08:48:23 +03:00
..
2026-11-11 13:15:39 +00:00
2026-11-15 10:05:54 +03:00
2026-10-23 23:54:57 +03:00
2026-11-17 08:48:23 +03:00
2026-11-03 16:39:50 +03:00
2026-11-02 17:43:29 +03:00
2026-10-25 18:28:00 +03:00
2026-10-31 13:59:28 +03:00
2026-11-13 08:38:08 +03:00
2026-11-13 08:38:08 +03:00
2026-11-02 03:16:58 +03:00
2026-10-23 22:27:54 +03:00
2026-11-14 22:28:42 +03:00
2026-11-02 03:16:58 +03:00
2026-10-23 22:27:54 +03:00
2026-11-13 08:38:08 +03:00
2026-11-14 22:28:42 +03:00
2026-10-31 07:34:59 +03:00
2026-11-07 16:38:26 +03:00
2026-11-17 08:48:23 +03:00
2026-10-31 07:08:11 -05:00
2026-11-14 22:19:51 +03:00
2026-11-17 08:48:23 +03:00
2026-11-12 19:02:31 +03:00
2026-11-14 15:12:35 +03:00
2026-11-01 14:16:53 +03:00
2026-10-31 10:02:16 -04:00
2026-11-15 10:05:54 +03:00
2026-11-15 00:31:00 +03:00
2026-11-11 14:48:24 +01:00
2026-11-03 20:56:36 +03:00
2026-11-17 08:48:23 +03:00
2026-11-17 08:48:23 +03:00
2026-11-03 17:31:58 +08:00
2026-11-03 08:40:13 +08:00
2026-10-31 13:26:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-01 07:09:13 +08:00
2026-11-02 17:36:09 +03:00
2026-11-02 17:36:09 +03:00
2026-11-02 17:36:09 +03:00
2026-11-10 18:44:18 +03:00
2026-11-15 00:31:00 +03:00
2026-11-12 19:02:31 +03:00
2026-10-27 13:40:34 +03:00
2026-10-27 13:40:34 +03:00
2026-11-12 18:29:24 +03:00
2026-11-12 03:29:24 +02:00
2026-10-29 16:56:56 -03:00
2026-11-04 15:00:36 +03:00
2026-11-16 08:12:34 +01:00
2026-11-01 21:08:13 +08:00
2026-11-04 18:05:21 +03:00
2026-10-31 21:17:12 +01:00
2026-11-02 17:36:09 +03:00
2026-11-05 08:30:33 +03:00
2026-10-29 16:56:56 -03:00
2026-11-10 23:24:11 +03:00
2026-10-31 21:17:12 +01:00
2026-10-31 21:17:12 +01:00
2026-11-12 23:21:04 +03:00
2026-10-31 21:17:12 +01:00
2026-11-17 08:48:23 +03:00
2026-11-14 19:05:18 +03:00
2026-11-14 22:19:51 +03:00
2026-11-14 22:19:51 +03:00
2026-11-12 18:21:53 +03:00
2026-11-02 17:36:09 +03:00
2026-11-12 18:21:53 +03:00
2026-10-29 16:56:56 -03:00
2026-11-11 14:48:24 +01:00
2026-11-15 09:32:05 +03:00
2026-11-15 09:32:05 +03:00
2026-11-14 19:05:18 +03:00
2026-10-29 16:56:56 -03:00
2026-11-14 19:05:18 +03:00
2026-11-15 00:31:00 +03:00
2026-11-17 08:48:23 +03:00
2026-11-17 08:48:23 +03:00
2026-11-17 08:05:19 +03:00
2026-11-17 08:05:19 +03:00
2026-11-14 11:35:29 +03:00
2026-11-11 13:12:21 +03:00
2026-11-17 08:48:23 +03:00
2026-11-17 08:48:23 +03:00
2026-11-17 08:48:23 +03:00
2026-11-15 09:32:05 +03:00
2026-11-12 03:29:24 +02:00
2026-11-15 00:31:00 +03:00
2026-11-03 23:27:39 +01:00
2026-10-31 14:11:46 +00:00
2026-10-31 14:11:46 +00:00
2026-11-09 09:53:30 +03:00
2026-11-12 23:41:44 +01:00
2026-11-10 23:24:11 +03:00
2026-11-07 10:55:55 +01:00
2026-10-29 12:58:01 +03:00
2026-11-14 11:35:29 +03:00
2026-11-02 10:40:51 -03:00
2026-10-29 12:58:01 +03:00
2026-11-15 08:54:22 +03:00
2026-10-29 16:56:56 -03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 14:31:41 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-11-09 09:53:30 +03:00
2026-11-12 20:31:40 +03:00
2026-10-29 16:56:56 -03:00
2026-11-10 23:24:11 +03:00
2026-11-13 08:38:08 +03:00
2026-11-03 23:41:10 +01:00
2026-11-15 09:32:05 +03:00
2026-10-31 14:11:46 +00:00
2026-11-13 08:38:08 +03:00
2026-10-27 13:12:50 +03:00
2026-11-16 20:11:43 +03:00
2026-11-08 11:46:10 +03:00
2026-11-03 20:09:22 +03:00
2026-11-03 20:09:22 +03:00
2026-11-06 10:55:42 +03:00
2026-11-17 08:48:23 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-14 23:07:00 +03:00
2026-11-05 10:49:55 -03:00
2026-11-05 10:49:55 -03:00
2026-11-05 10:49:55 -03:00
2026-10-23 22:27:54 +03:00
2026-11-16 20:11:43 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-15 00:31:00 +03:00
2026-11-15 00:31:00 +03:00
2026-11-17 08:48:23 +03:00
2026-10-29 17:29:31 -03:00
2026-10-31 13:26:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-10-29 12:41:12 +03:00
2026-10-29 12:41:12 +03:00
2026-10-31 13:26:42 +03:00
2026-10-23 22:27:54 +03:00
2026-10-25 14:14:46 +03:00
2026-11-15 11:12:40 +03:00
2026-10-31 07:27:46 +03:00
2026-10-26 16:48:02 +03:00
2026-10-30 13:40:04 +03:00
2026-10-26 16:48:02 +03:00
2026-11-17 08:48:23 +03:00
2026-11-17 08:48:23 +03:00
2026-10-29 16:56:56 -03:00
2026-11-09 09:20:09 +03:00
2026-11-10 18:20:16 +01:00
2026-11-10 09:01:54 +03:00
2026-10-31 10:02:16 -04:00
2026-11-14 23:35:24 +01:00
2026-11-08 19:39:17 +03:00
2026-11-07 16:38:26 +03:00
2026-11-15 20:13:00 +03:00
2026-11-14 08:34:52 +03:00
2026-11-08 19:39:18 +03:00
2026-10-31 14:44:48 +03:00
2026-11-16 18:03:42 +03:00
2026-11-15 18:55:39 +03:00
2026-11-08 19:39:17 +03:00
2026-11-16 18:03:42 +03:00
2026-11-16 18:03:42 +03:00
2026-10-31 07:27:46 +03:00
2026-10-31 13:26:42 +03:00
2026-11-12 23:21:04 +03:00
2026-11-09 10:51:49 +03:00
2026-11-16 18:12:35 +03:00
2026-11-03 17:31:58 +08:00
2026-11-10 14:59:31 +01:00
2026-11-03 19:39:49 +03:00
2026-11-08 19:39:17 +03:00
2026-11-15 09:19:24 +03:00
2026-11-14 11:35:29 +03:00
2026-11-08 19:39:17 +03:00
2026-11-10 18:20:16 +01:00
2026-11-13 08:38:20 +03:00
2026-11-08 19:39:17 +03:00
2026-10-23 22:27:54 +03:00
2026-11-15 18:55:39 +03:00
2026-11-03 01:19:10 +08:00