mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Fix permissions on Blackberry.
Currently only the app can modify/delete important data like saves in PSP folder. On Blackberry, the app is the user account (app_10283782). The currently logged in user is the group (shared_1000). Then other will be all users on the system. So let's make it that the user can modify their own data.
This commit is contained in:
1 parent
240c504869
commit
4e75840d81
2 files changed
+5
-1
No files matched your search
@@ -176,8 +176,12 @@ bool CreateDir(const std::string &path)
|
||||
}
|
||||
ERROR_LOG(COMMON, "CreateDir: CreateDirectory failed on %s: %i", path.c_str(), error);
|
||||
return false;
|
||||
#else
|
||||
#ifdef BLACKBERRY
|
||||
if (mkdir(path.c_str(), 0765) == 0)
|
||||
#else
|
||||
if (mkdir(path.c_str(), 0755) == 0)
|
||||
#endif
|
||||
return true;
|
||||
|
||||
int err = errno;
|
||||
|
||||
+1
-1
Submodule native updated: 2078efcb17...f6dd98570b.
Reference in new issue
Block a user