mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Fixed permission checks on copies to virtual drives
This commit is contained in:
parent
a4e061aea6
commit
995f57ab23
@ -370,7 +370,7 @@ bool PathCopyVrtToVrt(const char* destdir, const char* orig, u32* flags) {
|
|||||||
dvfile.keyslot = ovfile.keyslot = 0xFF; // this improves copy times for virtual NAND
|
dvfile.keyslot = ovfile.keyslot = 0xFF; // this improves copy times for virtual NAND
|
||||||
|
|
||||||
// check write permissions
|
// check write permissions
|
||||||
if ((!flags || !(*flags & OVERRIDE_PERM)) && !CheckWritePermissions(destdir))
|
if ((!flags || !(*flags & OVERRIDE_PERM)) && !CheckWritePermissions(dest))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// unmount critical NAND drives
|
// unmount critical NAND drives
|
||||||
@ -438,7 +438,7 @@ bool PathCopyFatToVrt(const char* destdir, const char* orig, u32* flags) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check write permissions
|
// check write permissions
|
||||||
if ((!flags || !(*flags & OVERRIDE_PERM)) && !CheckWritePermissions(destdir))
|
if ((!flags || !(*flags & OVERRIDE_PERM)) && !CheckWritePermissions(dest))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// FAT file
|
// FAT file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user