From e5a83da6dfdbbbedbf7ff1e70008140db8065e05 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Tue, 10 May 2016 02:31:47 +0800 Subject: [PATCH] Fix: couldn't set working dir for 8-bit cores if dir position is further than 8th. --- menu.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/menu.c b/menu.c index 8f20020..37a6431 100644 --- a/menu.c +++ b/menu.c @@ -132,21 +132,30 @@ 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); - - { int i; - for(i=0;i