mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixes to make Löve compile on Windows 10 UWP
This commit is contained in:
@@ -519,7 +519,9 @@ std::string Filesystem::getAppdataDirectory()
|
||||
{
|
||||
if (appdata.empty())
|
||||
{
|
||||
#ifdef LOVE_WINDOWS
|
||||
#ifdef LOVE_WINDOWS_UWP
|
||||
appdata = getUserDirectory();
|
||||
#elif LOVE_WINDOWS
|
||||
wchar_t *w_appdata = _wgetenv(L"APPDATA");
|
||||
appdata = to_utf8(w_appdata);
|
||||
replace_char(appdata, '\\', '/');
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
bool mount(const char *archive, const char *mountpoint, bool appendToPath = false);
|
||||
bool unmount(const char *archive);
|
||||
|
||||
File *newFile(const char *filename) const;
|
||||
love::filesystem::File *newFile(const char *filename) const;
|
||||
|
||||
FileData *newFileData(void *data, unsigned int size, const char *filename) const;
|
||||
FileData *newFileData(const char *b64, const char *filename) const;
|
||||
|
||||
Reference in New Issue
Block a user