mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Fixed filesystem writing on iOS.
This commit is contained in:
@@ -410,7 +410,13 @@ const char *Filesystem::getWorkingDirectory()
|
||||
|
||||
std::string Filesystem::getUserDirectory()
|
||||
{
|
||||
#ifdef LOVE_IOS
|
||||
// PHYSFS_getUserDir doesn't give exactly the path we want on iOS.
|
||||
static std::string userDir = normalize(love::ios::getHomeDirectory());
|
||||
#else
|
||||
static std::string userDir = normalize(PHYSFS_getUserDir());
|
||||
#endif
|
||||
|
||||
return userDir;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user