From 3b3d863ed0d0e764c196fcc5f4d9846e2a05586c Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 2 Sep 2021 23:16:54 +0200 Subject: [PATCH] Fixed more bugs in 86box.c - the paths are now displayed, and also made it display the ROM path. --- src/86box.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/86box.c b/src/86box.c index 7916db29f..02843b48e 100644 --- a/src/86box.c +++ b/src/86box.c @@ -620,6 +620,7 @@ usage: /* Make sure we have a trailing backslash. */ plat_path_slash(usr_path); + plat_path_slash(rom_path); /* At this point, we can safely create the full path name. */ plat_append_filename(cfg_path, usr_path, p); @@ -647,15 +648,13 @@ 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); + if (rom_path[0] != '\0') + pclog("# ROM path: %s\n", rom_path); + else + pclog("# ROM path: %sroms\\\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