mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Initial iOS implementation.
--HG-- branch : minor
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef LOVE_IOS
|
||||
# include "common/iOS.h"
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
size_t getDriveDelim(const std::string &input)
|
||||
@@ -422,6 +426,8 @@ std::string Filesystem::getAppdataDirectory()
|
||||
std::string udir = getUserDirectory();
|
||||
udir.append("/Library/Application Support");
|
||||
appdata = normalize(udir);
|
||||
#elif defined(LOVE_IOS)
|
||||
appdata = normalize(love::ios::getAppdataDirectory());
|
||||
#elif defined(LOVE_LINUX)
|
||||
char *xdgdatahome = getenv("XDG_DATA_HOME");
|
||||
if (!xdgdatahome)
|
||||
|
||||
Reference in New Issue
Block a user