diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index 94be9b830e..f7727b1d6b 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -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)