From 8e65036b71f3d233d2d4ff79de6824b46c2f928f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Fri, 8 Apr 2022 02:18:28 +0200 Subject: [PATCH] Fix ROM path logging at startup --- src/86box.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/86box.c b/src/86box.c index 63f4f3c52..58a57dff3 100644 --- a/src/86box.c +++ b/src/86box.c @@ -407,6 +407,7 @@ pc_init(int argc, char *argv[]) int ng = 0, lvmp = 0; uint32_t *uid, *shwnd; uint32_t lang_init = 0; + rom_path_t *rom_path = &rom_path; /* Grab the executable's full path. */ plat_get_exe_name(exe_path, sizeof(exe_path)-1); @@ -703,19 +704,10 @@ usage: pclog("# VM: %s\n#\n", vm_name); pclog("# Emulator path: %s\n", exe_path); pclog("# Userfiles path: %s\n", usr_path); - if (rom_paths.next) { - rom_path_t* cur_rom_path = &rom_paths; - while (cur_rom_path->next) { - pclog("# ROM path: %s\n", cur_rom_path->path); - cur_rom_path = cur_rom_path->next; - } - } - else -#ifndef _WIN32 - pclog("# ROM path: %sroms/\n", exe_path); -#else - pclog("# ROM path: %sroms\\\n", exe_path); -#endif + do { + pclog("# ROM path: %s\n", rom_path->path); + } while (rom_path = rom_path->next); + pclog("# Configuration file: %s\n#\n\n", cfg_path); /* * We are about to read the configuration file, which MAY