diff --git a/config.c b/config.c index 62e3a9d..e145c06 100644 --- a/config.c +++ b/config.c @@ -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); diff --git a/menu.c b/menu.c index 407d579..7f6766c 100644 --- a/menu.c +++ b/menu.c @@ -1897,7 +1897,7 @@ void HandleUI(void) OsdDisable(); SetConfigurationFilename(menusub); LoadConfiguration(NULL); - // OsdReset(RESET_NORMAL); + OsdReset(); menustate = MENU_NONE1; } else