mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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:
parent
240c504869
commit
4e75840d81
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
2
native
2
native
|
@ -1 +1 @@
|
|||
Subproject commit 2078efcb17dbc96931f103ce68d72be2ea4d295a
|
||||
Subproject commit f6dd98570bc65b83d6674aab66fee0b00730b012
|
Loading…
Add table
Reference in a new issue