mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Use "L" to force wide literal string.
If multi-byte character set is chosen, TEXT() does not produce a wide string, causing compilation errors.
This commit is contained in:
@@ -236,7 +236,7 @@ const char *Filesystem::getAppdataDirectory()
|
||||
#ifdef LOVE_WINDOWS
|
||||
if (appdata.empty())
|
||||
{
|
||||
wchar_t *w_appdata = _wgetenv(TEXT("APPDATA"));
|
||||
wchar_t *w_appdata = _wgetenv(L"APPDATA");
|
||||
appdata = to_utf8(w_appdata);
|
||||
replace_char(appdata, '\\', '/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user