mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Fixed UTF-8 encoding of APPDATA and CWD on Windows.
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
// Using this instead of boost::filesystem which totally
|
||||
// cramped our style.
|
||||
#ifdef LOVE_WINDOWS
|
||||
# include <windows.h>
|
||||
# include <direct.h>
|
||||
#else
|
||||
# include <sys/param.h>
|
||||
@@ -74,8 +75,11 @@ namespace physfs
|
||||
// Pointer used for file reads.
|
||||
char * buffer;
|
||||
|
||||
// Buffer used for getcwd in Linux.
|
||||
char cwdbuffer[LOVE_MAX_PATH];
|
||||
// Contains the current working directory (UTF8).
|
||||
std::string cwd;
|
||||
|
||||
// %APPDATA% on Windows.
|
||||
std::string appdata;
|
||||
|
||||
// This name will be used to create the folder
|
||||
// in the appdata/userdata folder.
|
||||
|
||||
Reference in New Issue
Block a user