diff options
| author | IAmNotSiob <273832158+IAmNotSiob@users.noreply.github.com> | 2026-11-21 23:50:12 +0100 |
|---|---|---|
| committer | root <root@m29531.contaboserver.net> | 2026-11-21 23:50:31 +0100 |
| commit | 0ca9bb8bc034ac2f5f322ce5b428af964bffca4e (patch) | |
| tree | df89c76031bd3b2dbdc63a2e8172e07d659fb4d1 /runtime/src/pe_loader.cpp | |
| parent | 8bd0087d2d0e45fc18fa78fb40b70ecfc6648854 (diff) | |
Runtime: gta6rt --run, and a stand-in game executable run through the loader
gta6rt --run <exe> [-- args] maps and binds the executable, initialises its
modules and calls its entry point on a game thread. shims/process.cpp answers
the process-level imports through the game's own import table: argv/argc and
GetCommandLine are the game's (UCRT api-set/ucrtbase and msvcrt forms), and
exit/_exit/quick_exit/ExitProcess/abort end the run with that exit code
instead of the host. gta6rt then exits with the game's code directly, so the
game's atexit handlers don't run during host shutdown.
tiny_game.exe (CTest run_tiny_game, run_tiny_game_exit_code) does what a title
does in its first second: arguments, a static initializer, a 4 MiB allocation,
a file round trip, a thread, and xgameruntime.dll imports, which the shim
registry answers instead of the link-time stub. thread_local and a C++
exception are opt-in (LEONIDA_RUN_TLS / LEONIDA_RUN_EH) until #93 and #176.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions