From 8281564b5c0ffb124c89c8c055fd96ff448ac9d4 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Wed, 3 Feb 2010 15:13:13 +0000 Subject: [PATCH] Fix issue that prevented the user from being able to open the Wii save folder for a game. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5003 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/ISOFile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Src/ISOFile.cpp b/Source/Core/DolphinWX/Src/ISOFile.cpp index f1a70b260a..6b358863d9 100644 --- a/Source/Core/DolphinWX/Src/ISOFile.cpp +++ b/Source/Core/DolphinWX/Src/ISOFile.cpp @@ -231,7 +231,10 @@ const std::string GameListItem::GetWiiFSPath() const if (!File::Exists(Path)) File::CreateFullPath(Path); - ret = std::string(Path); + if (Path[0] == '.') + ret = std::string(wxGetCwd().mb_str()) + std::string(Path).substr(strlen(ROOT_DIR)); + else + ret = std::string(Path); } delete Iso; }