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:
authorAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 21:11:25 +0100
committerAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 21:11:25 +0100
commit92da70ad6b56d3eccbd04a8bebb9fc5745c9f704 (patch)
treef9b52b3f22cf00c569df8cef1e650936c5229441 /runtime/src/main.cpp
parent342d5672cc61327eb713a407b6a08748e1f06d38 (diff)
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
Merge remote-tracking branch 'origin/main' into bindless-per-queue-retire
# Conflicts: # runtime/src/vulkan_backend.h
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);