upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorAwkGrep256 <AwkGrep256@users.noreply.github.com>2026-11-23 00:18:06 +0300
committerAwkGrep256 <AwkGrep256@users.noreply.github.com>2026-11-23 00:18:06 +0300
commit7353b6fbdd615209aa9ba52f0e46eeb35dea90ad (patch)
treedd5759ac54e1e9b8c01525c8291c2cf0ca856ca6 /runtime/src/main.cpp
parent58bc80c331097fe25df0cd43577ea17af2cd1e46 (diff)
parent960466152f872c87e4593c919c77ca587551c865 (diff)
Merge branch 'radv-ps-oracle' into ps-helper-lanes
# Conflicts: # docs/design.md # docs/shader_validation.md
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp2
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);