mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Handle write protected files as images
This commit is contained in:
parent
a9c9d7a93f
commit
4431c46a7b
@ -94,7 +94,8 @@ u32 MountImage(const char* path) {
|
|||||||
*mount_path = 0;
|
*mount_path = 0;
|
||||||
}
|
}
|
||||||
if (!type) return 0;
|
if (!type) return 0;
|
||||||
if (fx_open(&mount_file, path, FA_READ | FA_WRITE | FA_OPEN_EXISTING) != FR_OK)
|
if ((fx_open(&mount_file, path, FA_READ | FA_WRITE | FA_OPEN_EXISTING) != FR_OK) &&
|
||||||
|
(fx_open(&mount_file, path, FA_READ | FA_OPEN_EXISTING) != FR_OK))
|
||||||
return 0;
|
return 0;
|
||||||
f_lseek(&mount_file, 0);
|
f_lseek(&mount_file, 0);
|
||||||
f_sync(&mount_file);
|
f_sync(&mount_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user