mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Properly check for /Nintendo 3DS/ path write permission
This commit is contained in:
parent
12e9ca82d1
commit
06eaf679b9
@ -438,8 +438,9 @@ bool PathCopyVrtToFat(char* dest, char* orig, u32* flags) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check destination write permission (SysNAND CTRNAND only)
|
// check destination write permission (special paths only)
|
||||||
if ((*dest == '1') && (!flags || (*flags & (OVERWRITE_CUR|OVERWRITE_ALL))) &&
|
if (((*dest == '1') || (strncmp(dest, "0:/Nintendo 3DS", 16) == 0)) &&
|
||||||
|
(!flags || (*flags & (OVERWRITE_CUR|OVERWRITE_ALL))) &&
|
||||||
!CheckWritePermissions(dest)) return false;
|
!CheckWritePermissions(dest)) return false;
|
||||||
|
|
||||||
// the copy process takes place here
|
// the copy process takes place here
|
||||||
@ -573,8 +574,9 @@ bool PathCopyWorker(char* dest, char* orig, u32* flags, bool move) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check destination write permission (SysNAND CTRNAND only)
|
// check destination write permission (special paths only)
|
||||||
if ((*dest == '1') && (!flags || (*flags & (OVERWRITE_CUR|OVERWRITE_ALL))) &&
|
if (((*dest == '1') || (strncmp(dest, "0:/Nintendo 3DS", 16) == 0)) &&
|
||||||
|
(!flags || (*flags & (OVERWRITE_CUR|OVERWRITE_ALL))) &&
|
||||||
!CheckWritePermissions(dest)) return false;
|
!CheckWritePermissions(dest)) return false;
|
||||||
|
|
||||||
// the copy process takes place here
|
// the copy process takes place here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user