diff --git a/src/modules/filesystem/physfs/Filesystem.cpp b/src/modules/filesystem/physfs/Filesystem.cpp index c253ba6f1..5dbd63e24 100644 --- a/src/modules/filesystem/physfs/Filesystem.cpp +++ b/src/modules/filesystem/physfs/Filesystem.cpp @@ -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; }