From 9d8a82e1d9d945d68b17adab1aff34c96aeda003 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 5 Dec 2017 21:23:35 +0100 Subject: Don't use wrong encoding for paths when opening streams on Windows --- Source/Core/DolphinWX/Frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/Frame.cpp') 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; -- cgit v1.2.3