mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Import thelinx' freedesktop patch as in bug #105
This commit is contained in:
@@ -214,6 +214,16 @@ namespace physfs
|
||||
appdata = udir;
|
||||
}
|
||||
return appdata.c_str();
|
||||
#elif defined(LOVE_LINUX)
|
||||
if(appdata.empty())
|
||||
{
|
||||
char * xdgdatahome = getenv("XDG_DATA_HOM");
|
||||
if (!xdgdatahome)
|
||||
appdata = getUserDirectory();
|
||||
else
|
||||
appdata = xdgdatahome;
|
||||
}
|
||||
return appdata.c_str();
|
||||
#else
|
||||
return getUserDirectory();
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#define LOVE_FILESYSTEM_PHYSFS_FILESYSTEM_H
|
||||
|
||||
// STD
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
Reference in New Issue
Block a user