mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 22:15:57 +00:00
A plugin built with default visibility calls its own exported functions through its PLT. Challenge Mode's Enemy Health Regeneration plugin (exefs subsdk8) does so for the std::vector<const char*> constructor it carries, and the service run counted that as a library call outside the reviewed list, so the plugin was refused and its whole mod stayed off. runtime/loader.c resolve binds such a JUMP_SLOT straight to the plugin's own definition (a host override still wins and stays counted), and tools/exefs_plugins.py plt_imports maps the PLT stub to that code, so the reach check follows into it instead of naming an import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ed8fa04034
commit
6f97dca93a
4 files changed
+43
-4
No files matched your search
+3
-1
@@ -128,7 +128,9 @@ The rebuild refuses a plugin when its start-up or the code its redirects reach n
|
||||
system calls other than the few its start-up needs (memory queries and maps, the heap size, the clock, debug output),
|
||||
or a library call the game itself never makes and a reviewed list does not hold (memory and string functions, the heap,
|
||||
text formatting, mutexes, the clock, the system language, the SD card's files), such as network sockets or the module
|
||||
loader. A library call the game makes (threads, input, time, its files) runs on the path the game runs on. A start-up
|
||||
loader. A library call the game makes (threads, input, time, its files) runs on the path the game runs on. A call to a
|
||||
function the plugin itself holds counts as its own code, even when it goes through the plugin's import table (C++
|
||||
library templates such as `std::vector` built into it). A start-up
|
||||
still gets only the system calls above, so it cannot start a thread or open a service; a redirect that is not one of exlaunch's hook shapes
|
||||
(inline hook, replace hook, call-site rewrite, a branch into its code from inside a game function, a pointer in the
|
||||
game's data swapped for one into its code); a write into the game's read-only data or into another module; two runs of
|
||||
|
||||
Reference in new issue
Block a user