From 237e00f62b3c6a955c19f7fbe3fcf41aaf018571 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sat, 28 Aug 2021 12:18:49 +0600 Subject: [PATCH] Fix log path printing on non-Windows systems --- src/86box.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/86box.c b/src/86box.c index 0a5c59258..eeeb9621d 100644 --- a/src/86box.c +++ b/src/86box.c @@ -560,10 +560,15 @@ usage: strftime(temp, sizeof(temp), "%Y/%m/%d %H:%M:%S", info); pclog("#\n# %ls v%ls logfile, created %s\n#\n", EMU_NAME_W, EMU_VERSION_W, temp); +#ifdef _WIN32 pclog("# Emulator path: %ls\n", exe_path); pclog("# Userfiles path: %ls\n", usr_path); pclog("# Configuration file: %ls\n#\n\n", cfg_path); - +#else + pclog("# Emulator path: %s\n", exe_path); + pclog("# Userfiles path: %s\n", usr_path); + pclog("# Configuration file: %s\n#\n\n", cfg_path); +#endif /* * We are about to read the configuration file, which MAY * put data into global variables (the hard- and floppy