summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-12-07 10:04:55 +0100
committerGitHub <noreply@github.com>2017-12-07 10:04:55 +0100
commitecf30cfc749ff49697c8b6bf24efae4202a2bf61 (patch)
tree012b7fce3de5c5ae23e1c0619d9cbd06024c6766 /Source/Core/DolphinWX/Frame.cpp
parent9d246800c2a9baea00b643e2f48bf213a8834a30 (diff)
parent9d8a82e1d9d945d68b17adab1aff34c96aeda003 (diff)
Merge pull request #6240 from JosJuice/stream-path-encoding
Don't use wrong encoding for paths when opening streams on Windows
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index d1f8693417..ccfdd729d2 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -150,7 +150,8 @@ void CRenderFrame::OnDropFiles(wxDropFilesEvent& event)
bool CRenderFrame::IsValidSavestateDropped(const std::string& filepath)
{
const int game_id_length = 6;
- std::ifstream file(filepath, std::ios::in | std::ios::binary);
+ std::ifstream file;
+ File::OpenFStream(file, filepath, std::ios::in | std::ios::binary);
if (!file)
return false;