diff options
| author | AwkGrep256 <AwkGrep256@users.noreply.github.com> | 2026-11-23 00:17:29 +0300 |
|---|---|---|
| committer | AwkGrep256 <AwkGrep256@users.noreply.github.com> | 2026-11-23 00:17:29 +0300 |
| commit | 960466152f872c87e4593c919c77ca587551c865 (patch) | |
| tree | 075508dbd059ed8a7d3d158afb1cc28daf90418d /runtime/src/main.cpp | |
| parent | adefa18b1386241953ddec58e540e72647ff5420 (diff) | |
| parent | dd0abd45b33e77b887e8f910a0a74f8cb5b0a32a (diff) | |
Merge branch 'pr3061-new' into radv-ps-oracle
# Conflicts:
# docs/shader_validation.md
Diffstat (limited to 'runtime/src/main.cpp')
| -rw-r--r-- | runtime/src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp index 06baae387..7bc2d78ab 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp | |||
| @@ -94,6 +94,7 @@ int wmain(int argc, wchar_t** argv) { | |||
| 94 | try { | 94 | try { |
| 95 | rt::Loader loader(game_dir); | 95 | rt::Loader loader(game_dir); |
| 96 | rt::Module& main_module = loader.load(image); // maps, binds and installs TLS; runs no image code | 96 | rt::Module& main_module = loader.load(image); // maps, binds and installs TLS; runs no image code |
| 97 | if (run) rt::process::set_command_line(image.filename().wstring(), game_args); | ||
| 97 | if (init || run) { | 98 | if (init || run) { |
| 98 | loader.initialise(); // TLS callbacks, then DllMain(DLL_PROCESS_ATTACH) for DLLs | 99 | loader.initialise(); // TLS callbacks, then DllMain(DLL_PROCESS_ATTACH) for DLLs |
| 99 | std::printf("%zu module(s) initialised\n", loader.modules().size()); | 100 | std::printf("%zu module(s) initialised\n", loader.modules().size()); |
| @@ -128,7 +129,6 @@ int wmain(int argc, wchar_t** argv) { | |||
| 128 | std::fprintf(stderr, "error: %s has no entry point\n", main_module.name.c_str()); | 129 | std::fprintf(stderr, "error: %s has no entry point\n", main_module.name.c_str()); |
| 129 | return 1; | 130 | return 1; |
| 130 | } | 131 | } |
| 131 | rt::process::set_command_line(image.filename().wstring(), game_args); | ||
| 132 | std::printf("console paths: GAME: -> %ls, writes -> %ls\n", game_dir.c_str(), overlay_dir.c_str()); | 132 | std::printf("console paths: GAME: -> %ls, writes -> %ls\n", game_dir.c_str(), overlay_dir.c_str()); |
| 133 | std::printf("running %s\n", main_module.name.c_str()); | 133 | std::printf("running %s\n", main_module.name.c_str()); |
| 134 | std::fflush(stdout); | 134 | std::fflush(stdout); |