INI option to disable logo in Menu core.

This commit is contained in:
sorgelig
2020-06-18 10:54:38 +08:00
parent 176369ab1f
commit 19cf3890d5
4 changed files with 7 additions and 1 deletions

View File

@@ -116,3 +116,6 @@ sniper_mode=0
; Uncomment following option if you don't want to see a second line for long file names in listing.
;browse_expand=0
; 0 - disable MiSTer logo in Menu core
logo=1

View File

@@ -70,6 +70,7 @@ static const ini_var_t ini_vars[] =
{ "JAMMA_PID", (void*)(&(cfg.jamma_pid)), UINT16, 0, 0xFFFF },
{ "SNIPER_MODE", (void*)(&(cfg.sniper_mode)), UINT8, 0, 1 },
{ "BROWSE_EXPAND", (void*)(&(cfg.browse_expand)), UINT8, 0, 1 },
{ "LOGO", (void*)(&(cfg.logo)), UINT8, 0, 1 },
};
static const int nvars = (int)(sizeof(ini_vars) / sizeof(ini_var_t));
@@ -315,5 +316,6 @@ void cfg_parse()
cfg.fb_terminal = 1;
cfg.controller_info = 6;
cfg.browse_expand = 1;
cfg.logo = 1;
ini_parse(altcfg());
}

1
cfg.h
View File

@@ -44,6 +44,7 @@ typedef struct {
uint16_t jamma_pid;
uint8_t sniper_mode;
uint8_t browse_expand;
uint8_t logo;
char bootcore[256];
char video_conf[1024];
char video_conf_pal[1024];

View File

@@ -1271,7 +1271,7 @@ void video_menu_bg(int n, int idle)
break;
}
if (logo && !idle)
if (cfg.logo && logo && !idle)
{
imlib_context_set_image(logo);