From 482360906badd215231fd2b4ce9e62009dd0c467 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Fri, 11 Jan 2013 11:24:52 -0500 Subject: [PATCH] Convert relative paths to absolute when opening containing folder of an iso. Fixes issue 5879. --- Source/Core/DolphinWX/Src/GameListCtrl.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp index 2e31843ef9..6f75674c29 100644 --- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -982,9 +983,11 @@ void CGameListCtrl::OnOpenContainingFolder(wxCommandEvent& WXUNUSED (event)) const GameListItem *iso = GetSelectedISO(); if (!iso) return; - std::string path; - SplitPath(iso->GetFileName(), &path, 0, 0); - WxUtils::Explore(path.c_str()); + + wxString strPath(iso->GetFileName().c_str(), wxConvUTF8); + wxFileName path = wxFileName::FileName(strPath); + path.MakeAbsolute(); + WxUtils::Explore(path.GetPath().char_str()); } void CGameListCtrl::OnOpenSaveFolder(wxCommandEvent& WXUNUSED (event))