upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authoraslan2142 <jan.trencansky@protonmail.com>2026-11-25 23:56:38 +0100
committerGitHub <noreply@github.com>2026-11-25 23:56:38 +0100
commitd34c426ef9f89e63c1261eb1d8a40bf8cc62a1db (patch)
tree3d951f8968c9b17c27b79ba27e9eb02b658c50ac /runtime/src
parent6ef26a648d29f9466f6f3885318885039e598300 (diff)
parentc116c3fa28983444cd47feea0461e1e7eaac83b5 (diff)
Merge pull request #684 from aslan2142/t-drive-overlay
OLD-8161: restore old upstream PR 8161 - file_system: T: is a folder of each process's own in the overlay
Diffstat (limited to 'runtime/src')
-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);