Lua now uses our fake FatFS when running in simu

This commit is contained in:
Bertrand Songis
2014-02-10 12:15:24 +01:00
parent e15eb9ff79
commit d374453c8f
3 changed files with 10 additions and 11 deletions
+3 -1
View File
@@ -534,7 +534,9 @@ FRESULT f_chdir (const TCHAR *name)
FRESULT f_opendir (DIR * rep, const TCHAR * name)
{
rep->fs = (FATFS *)simu::opendir(convertSimuPath(name));
char *path = convertSimuPath(name);
TRACE("f_opendir(%s)", path);
rep->fs = (FATFS *)simu::opendir(path);
return FR_OK;
}