mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-22 20:52:39 +00:00
Revert "(RGUI) Add some patches for _WIN32 - still broken path handling"
This reverts commit d17a43220f0e7574322e38c4c7a3cce14fdf6ce1.
This commit is contained in:
parent
946bc52061
commit
47b6eb262f
@ -1528,11 +1528,11 @@ static bool folder_cb(const char *directory, rgui_file_enum_cb_t file_cb,
|
||||
file_cb(ctx, "cardb:/", RGUI_FILE_DEVICE, 0);
|
||||
return true;
|
||||
#elif defined(_XBOX1)
|
||||
file_cb(ctx, "C:", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "D:", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "E:", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "F:", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "G:", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "C:\\", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "D:\\", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "E:\\", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "F:\\", RGUI_FILE_DEVICE, 0);
|
||||
file_cb(ctx, "G:\\", RGUI_FILE_DEVICE, 0);
|
||||
return true;
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
file_cb(ctx, "app_home", RGUI_FILE_DEVICE, 0);
|
||||
@ -1555,15 +1555,10 @@ static bool folder_cb(const char *directory, rgui_file_enum_cb_t file_cb,
|
||||
|
||||
const char *exts = core_chooser ? EXT_EXECUTABLES : g_extern.system.valid_extensions;
|
||||
char dir[PATH_MAX];
|
||||
#ifdef _WIN32
|
||||
char slash = '\\';
|
||||
#else
|
||||
char slash = '/';
|
||||
#endif
|
||||
if (*directory)
|
||||
strlcpy(dir, directory, sizeof(dir));
|
||||
else
|
||||
snprintf(dir, sizeof(dir), "%s%c", dir, slash);
|
||||
strlcpy(dir, "/", sizeof(dir));
|
||||
|
||||
struct string_list *list = dir_list_new(dir, exts, true);
|
||||
if (!list)
|
||||
|
Loading…
x
Reference in New Issue
Block a user