diff --git a/MiSTer.ini b/MiSTer.ini index 74e5f8d..019d0df 100644 --- a/MiSTer.ini +++ b/MiSTer.ini @@ -1,5 +1,5 @@ [MiSTer] -;debug=0 ; set to 0 to disable debugging messages. Default is 1. +;debug=1 ; set to 1 to enable debugging messages. Default is 0(disabled). key_menu_as_rgui=0 ; set to 1 to make the MENU key map to RGUI in Minimig (e.g. for Right Amiga) forced_scandoubler=0 ; set to 1 to run scandoubler on VGA output always (depends on core). ;ypbpr=0 ; set to 1 for YPbPr on VGA output. (obsolete. see vga_mode) diff --git a/cfg.cpp b/cfg.cpp index d52bf46..34c4aac 100644 --- a/cfg.cpp +++ b/cfg.cpp @@ -409,16 +409,17 @@ static void ini_parse(int alt, const char *vmode) int eof; if (!orig_stdout) orig_stdout = stdout; - if(!dev_null) + if (!dev_null) { dev_null = fopen("/dev/null", "w"); - if (dev_null) { + if (dev_null) + { int null_fd = fileno(dev_null); if (null_fd >= 0) fcntl(null_fd, F_SETFD, FD_CLOEXEC); + stdout = dev_null; } } - ini_parser_debugf("Start INI parser for core \"%s\"(%s), video mode \"%s\".", user_io_get_core_name(0), user_io_get_core_name(1), vmode); memset(line, 0, sizeof(line));