From 50018de483f12b21ee1f5247d7b35015c0f1e8ab Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 9 Aug 2022 12:13:43 +0100 Subject: [PATCH] [util] Use topath helper for fstreams --- src/util/config/config.cpp | 2 +- src/util/log/log.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index a80df9ce..151fc054 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -889,7 +889,7 @@ namespace dxvk { filePath = "dxvk.conf"; // Open the file if it exists - std::ifstream stream(str::tows(filePath.c_str()).c_str()); + std::ifstream stream(str::topath(filePath.c_str()).c_str()); if (!stream) return config; diff --git a/src/util/log/log.cpp b/src/util/log/log.cpp index 59c9e605..b3eaa37a 100644 --- a/src/util/log/log.cpp +++ b/src/util/log/log.cpp @@ -10,7 +10,7 @@ namespace dxvk { auto path = getFileName(file_name); if (!path.empty()) - m_fileStream = std::ofstream(str::tows(path.c_str()).c_str()); + m_fileStream = std::ofstream(str::topath(path.c_str()).c_str()); } }