mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Don't use wrong encoding for paths when opening streams on Windows
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
|
||||
#include "Common/CPUDetect.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
const char procfile[] = "/proc/cpuinfo";
|
||||
@ -22,7 +23,8 @@ static std::string GetCPUString()
|
||||
std::string cpu_string = "Unknown";
|
||||
|
||||
std::string line;
|
||||
std::ifstream file(procfile);
|
||||
std::ifstream file;
|
||||
File::OpenFStream(file, procfile, std::ios_base::in);
|
||||
|
||||
if (!file)
|
||||
return cpu_string;
|
||||
|
Reference in New Issue
Block a user