Set debug=0 by default.

This commit is contained in:
Sorgelig
2024-02-13 02:08:09 +08:00
parent 96f3f685e4
commit bed1ca424a
2 changed files with 5 additions and 4 deletions

View File

@@ -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)

View File

@@ -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));