If errors are detected in INI settings display an info message for 5 seconds at core startup. (#696)

Added `cfg_error` function for reporting errors in the ini.
Report errors when parsing video_mode information.
Report out of bounds settings.
Report unknown settings.
Detect numeric parse failures.
This commit is contained in:
Martin Donlon
2022-09-24 13:32:39 -07:00
committed by GitHub
parent 5728bdda78
commit 801a5ea0d2
4 changed files with 133 additions and 49 deletions

View File

@@ -1505,6 +1505,13 @@ void user_io_init(const char *path, const char *xml)
// release reset
if (!is_minimig() && !is_st()) user_io_status_set("[0]", 0);
if (xml && isXmlName(xml) == 1) arcade_check_error();
char cfg_errs[512];
if (cfg_check_errors(cfg_errs, sizeof(cfg_errs)))
{
Info(cfg_errs, 5000);
sleep(5);
}
break;
}