1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 13:08:50 +01:00

[util] Use topath helper for fstreams

This commit is contained in:
Joshua Ashton 2022-08-09 12:13:43 +01:00 committed by Joshie
parent 5de058e14a
commit 50018de483
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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());
}
}