Merge pull request #6240 from JosJuice/stream-path-encoding

Don't use wrong encoding for paths when opening streams on Windows
This commit is contained in:
Leo Lam 2017-12-07 10:04:55 +01:00 committed by GitHub
commit ecf30cfc74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 8 deletions

View file

@ -21,7 +21,10 @@ FPSCounter::FPSCounter()
void FPSCounter::LogRenderTimeToFile(u64 val)
{
if (!m_bench_file.is_open())
m_bench_file.open(File::GetUserPath(D_LOGS_IDX) + "render_time.txt");
{
File::OpenFStream(m_bench_file, File::GetUserPath(D_LOGS_IDX) + "render_time.txt",
std::ios_base::out);
}
m_bench_file << std::fixed << std::setprecision(8) << (val / 1000.0) << std::endl;
}