From 946bc520618d67a92975c587c84e72e819399369 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 11 Mar 2013 02:08:00 +0100 Subject: [PATCH] Revert "(RGUI) Add more WIN32 path handling fixes" This reverts commit b942b76b3c8e87e3b801b0eee3ed7d538546474c. --- frontend/menu/rgui.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index 9afe164a9d..94be9b830e 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -1344,13 +1344,8 @@ int rgui_iterate(rgui_handle_t *rgui, rgui_action_t action) if (type == RGUI_FILE_DIRECTORY) { -#ifdef _WIN32 - char slash = '\\'; -#else - char slash = '/'; -#endif char cat_path[PATH_MAX]; - snprintf(cat_path, sizeof(cat_path), "%s%c%s", dir, slash, path); + snprintf(cat_path, sizeof(cat_path), "%s/%s", dir, path); if (strcmp(path, "..") == 0) { @@ -1390,12 +1385,7 @@ int rgui_iterate(rgui_handle_t *rgui, rgui_action_t action) else #endif { -#ifdef _WIN32 - char slash = '\\'; -#else - char slash = '/'; -#endif - snprintf(rgui->path_buf, sizeof(rgui->path_buf), "%s%c%s", dir, slash, path); + snprintf(rgui->path_buf, sizeof(rgui->path_buf), "%s/%s", dir, path); strlcpy(g_extern.fullpath, rgui->path_buf, sizeof(g_extern.fullpath)); g_extern.lifecycle_mode_state |= (1ULL << MODE_LOAD_GAME);