Add INI option Main for custom binary.

This commit is contained in:
Sorgelig
2024-03-25 23:36:19 +08:00
parent 4b304b4941
commit e61b111858
6 changed files with 18 additions and 5 deletions

View File

@@ -130,6 +130,7 @@ static const ini_var_t ini_vars[] =
{ "OSD_LOCK", (void*)(&(cfg.osd_lock)), STRING, 0, sizeof(cfg.osd_lock) - 1 },
{ "OSD_LOCK_TIME", (void*)(&(cfg.osd_lock_time)), UINT16, 0, 60 },
{ "DEBUG", (void *)(&(cfg.debug)), UINT8, 0, 1 },
{ "MAIN", (void*)(&(cfg.main)), STRING, 0, sizeof(cfg.main) - 1 },
};
static const int nvars = (int)(sizeof(ini_vars) / sizeof(ini_var_t));
@@ -555,6 +556,7 @@ void cfg_parse()
cfg.video_saturation = 100;
cfg.video_hue = 0;
strcpy(cfg.video_gain_offset, "1, 0, 1, 0, 1, 0");
strcpy(cfg.main, "MiSTer");
has_video_sections = false;
using_video_section = false;
cfg_error_count = 0;