diff --git a/menu.c b/menu.c index 37a6431..f6c246d 100644 --- a/menu.c +++ b/menu.c @@ -132,33 +132,47 @@ void SelectFile(char* pFileExt, unsigned char Options, unsigned char MenuSelect, // for 8 bit cores try to if((user_io_core_type() == CORE_TYPE_8BIT) && chdir) { - int n; user_io_create_config_name(s); // try to change into subdir named after the core strcpy(s+8, " "); iprintf("Trying to open work dir \"%s\"\n", s); ScanDirectory(SCAN_INIT, "", SCAN_DIR | FIND_DIR); - // no return flag :(, so scan 10 times blindly... - for(n=0; n<10; n++) { - int i; - char res = 0; - for(i=0;i