diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-12-07 10:04:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-07 10:04:55 +0100 |
| commit | ecf30cfc749ff49697c8b6bf24efae4202a2bf61 (patch) | |
| tree | 012b7fce3de5c5ae23e1c0619d9cbd06024c6766 /Source/Core/VideoCommon/FPSCounter.cpp | |
| parent | 9d246800c2a9baea00b643e2f48bf213a8834a30 (diff) | |
| parent | 9d8a82e1d9d945d68b17adab1aff34c96aeda003 (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/VideoCommon/FPSCounter.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FPSCounter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/FPSCounter.cpp b/Source/Core/VideoCommon/FPSCounter.cpp index 86b3ab5c85..24d49548df 100644 --- a/Source/Core/VideoCommon/FPSCounter.cpp +++ b/Source/Core/VideoCommon/FPSCounter.cpp @@ -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; } |
