diff options
Diffstat (limited to 'runtime/src/main.cpp')
| -rw-r--r-- | runtime/src/main.cpp | 10 |
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); |