Minimig: fix config loading menu.

This commit is contained in:
sorgelig
2017-07-17 21:02:51 +08:00
parent d1eaae749e
commit 4dd91eebaa
2 changed files with 9 additions and 3 deletions

View File

@@ -231,12 +231,18 @@ void SetConfigurationFilename(int config)
//// ConfigurationExists() ////
unsigned char ConfigurationExists(char *filename)
{
if (!filename) {
char path[256] = { CONFIG_DIR"/" };
if (!filename)
{
// use slot-based filename if none provided
filename = configfilename;
}
strcat(path, filename);
fileTYPE f;
if(FileOpen(&f, filename))
if(FileOpen(&f, path))
{
FileClose(&f);
return(1);

2
menu.c
View File

@@ -1897,7 +1897,7 @@ void HandleUI(void)
OsdDisable();
SetConfigurationFilename(menusub);
LoadConfiguration(NULL);
// OsdReset(RESET_NORMAL);
OsdReset();
menustate = MENU_NONE1;
}
else