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 098a8ee40..900b8460a 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp | |||
| @@ -254,7 +254,9 @@ int wmain(int argc, wchar_t** argv) { | |||
| 254 | std::fprintf(stderr, "error: %s has no entry point\n", main_module.name.c_str()); | 254 | std::fprintf(stderr, "error: %s has no entry point\n", main_module.name.c_str()); |
| 255 | return 1; | 255 | return 1; |
| 256 | } | 256 | } |
| 257 | const std::wstring paths = L"console paths: GAME: -> " + game_dir.native() + L", writes -> " + overlay_dir.native(); | 257 | const std::filesystem::path scratch_dir = rt::fs::scratch_dir(); |
| 258 | const std::wstring paths = L"console paths: GAME: -> " + game_dir.native() + L", writes -> " + | ||
| 259 | overlay_dir.native() + L", T: -> " + scratch_dir.native(); | ||
| 258 | const HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); | 260 | const HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); |
| 259 | DWORD mode; | 261 | DWORD mode; |
| 260 | bool printed = false; | 262 | bool printed = false; |
| @@ -267,8 +269,10 @@ int wmain(int argc, wchar_t** argv) { | |||
| 267 | if (!printed) { | 269 | if (!printed) { |
| 268 | const auto game = game_dir.u8string(); | 270 | const auto game = game_dir.u8string(); |
| 269 | const auto overlay = overlay_dir.u8string(); | 271 | const auto overlay = overlay_dir.u8string(); |
| 270 | std::printf("console paths: GAME: -> %s, writes -> %s\n", | 272 | const auto scratch = scratch_dir.u8string(); |
| 271 | reinterpret_cast<const char*>(game.c_str()), reinterpret_cast<const char*>(overlay.c_str())); | 273 | std::printf("console paths: GAME: -> %s, writes -> %s, T: -> %s\n", |
| 274 | reinterpret_cast<const char*>(game.c_str()), reinterpret_cast<const char*>(overlay.c_str()), | ||
| 275 | reinterpret_cast<const char*>(scratch.c_str())); | ||
| 272 | } | 276 | } |
| 273 | std::printf("running %s\n", main_module.name.c_str()); | 277 | std::printf("running %s\n", main_module.name.c_str()); |
| 274 | std::fflush(stdout); | 278 | std::fflush(stdout); |