mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 11:43:00 +00:00
Don't use unicode.
This commit is contained in:
parent
0b62771b54
commit
f70b52a0df
5
file.c
5
file.c
@ -937,10 +937,7 @@ void dir_list_free(char **dir_list)
|
||||
bool path_is_directory(const char *path)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
wchar_t buf[PATH_MAX];
|
||||
if (MultiByteToWideChar(CP_UTF8, 0, path, -1, buf, PATH_MAX) == 0)
|
||||
return false;
|
||||
return PathIsDirectoryW(buf) == FILE_ATTRIBUTE_DIRECTORY;
|
||||
return PathIsDirectory(buf) == FILE_ATTRIBUTE_DIRECTORY;
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
return false; // STUB
|
||||
#elif defined(XENON)
|
||||
|
Loading…
x
Reference in New Issue
Block a user