Fix file lock check routines

This commit is contained in:
d0k3 2016-12-09 15:30:22 +01:00
parent 4431c46a7b
commit fec4f081a0

View File

@ -405,8 +405,8 @@ u32 GetWritePermissions() {
bool FileCheck(const char* path) { bool FileCheck(const char* path) {
FIL file; FIL file;
if (PathToNumFSA(path) < 0) return true; if (PathToNumFSA(path) < 0) return true;
if (f_open(&file, path, FA_READ | FA_OPEN_EXISTING) == FR_OK) { if (fx_open(&file, path, FA_READ | FA_OPEN_EXISTING) == FR_OK) {
f_close(&file); fx_close(&file);
return true; return true;
} else return false; } else return false;
} }