mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Don't use wrong encoding for paths when opening streams on Windows
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user