mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Fix file lock check routines
This commit is contained in:
parent
4431c46a7b
commit
fec4f081a0
@ -405,8 +405,8 @@ u32 GetWritePermissions() {
|
||||
bool FileCheck(const char* path) {
|
||||
FIL file;
|
||||
if (PathToNumFSA(path) < 0) return true;
|
||||
if (f_open(&file, path, FA_READ | FA_OPEN_EXISTING) == FR_OK) {
|
||||
f_close(&file);
|
||||
if (fx_open(&file, path, FA_READ | FA_OPEN_EXISTING) == FR_OK) {
|
||||
fx_close(&file);
|
||||
return true;
|
||||
} else return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user