Lua now uses our fake FatFS when running in simu
This commit is contained in:
@@ -11,10 +11,7 @@
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// #define LUA_LIB
|
||||
#if !defined(SIMU)
|
||||
#define USE_FATFS
|
||||
#endif
|
||||
#define USE_FATFS
|
||||
|
||||
/*
|
||||
** ==================================================================
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user