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:
authorMoonEyes <14891700+MoonEyes@users.noreply.github.com>2026-11-26 00:02:32 +0100
committerMoonEyes <14891700+MoonEyes@users.noreply.github.com>2026-11-26 00:02:32 +0100
commitcdbbb39554eb5743bf285aab07862920ec5c938f (patch)
tree2b9bf5221538f9f48c2de27286f64491546cd6c5 /runtime/src/main.cpp
parent7a4d1f772104f015d84057f8274942bea4fce1b9 (diff)
parenta0723a9e9261705f3d6d6619ee88b172fd0fc90a (diff)
Merge remote-tracking branch 'origin/main' into feat/pipeline-order-recorder
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp
index 094aaa321..28949830b 100644
--- a/runtime/src/main.cpp
+++ b/runtime/src/main.cpp
@@ -541,7 +541,9 @@ int wmain(int argc, wchar_t** argv) {
541 std::fprintf(stderr, "error: %s has no entry point\n", main_module.name.c_str()); 541 std::fprintf(stderr, "error: %s has no entry point\n", main_module.name.c_str());
542 return 1; 542 return 1;
543 } 543 }
544 const std::wstring paths = L"console paths: GAME: -> " + game_dir.native() + L", writes -> " + overlay_dir.native(); 544 const std::filesystem::path scratch_dir = rt::fs::scratch_dir();
545 const std::wstring paths = L"console paths: GAME: -> " + game_dir.native() + L", writes -> " +
546 overlay_dir.native() + L", T: -> " + scratch_dir.native();
545 const HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); 547 const HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
546 DWORD mode; 548 DWORD mode;
547 bool printed = false; 549 bool printed = false;
@@ -554,8 +556,10 @@ int wmain(int argc, wchar_t** argv) {
554 if (!printed) { 556 if (!printed) {
555 const auto game = game_dir.u8string(); 557 const auto game = game_dir.u8string();
556 const auto overlay = overlay_dir.u8string(); 558 const auto overlay = overlay_dir.u8string();
557 std::printf("console paths: GAME: -> %s, writes -> %s\n", 559 const auto scratch = scratch_dir.u8string();
558 reinterpret_cast<const char*>(game.c_str()), reinterpret_cast<const char*>(overlay.c_str())); 560 std::printf("console paths: GAME: -> %s, writes -> %s, T: -> %s\n",
561 reinterpret_cast<const char*>(game.c_str()), reinterpret_cast<const char*>(overlay.c_str()),
562 reinterpret_cast<const char*>(scratch.c_str()));
559 } 563 }
560 std::printf("running %s\n", main_module.name.c_str()); 564 std::printf("running %s\n", main_module.name.c_str());
561 std::fflush(stdout); 565 std::fflush(stdout);