[dxvk] Use path_string for getCacheFileName

This commit is contained in:
Joshua Ashton 2022-08-20 23:52:54 +00:00 committed by Philip Rebohle
parent 9509ec1144
commit 9d64982b23
2 changed files with 3 additions and 3 deletions

View File

@ -794,7 +794,7 @@ namespace dxvk {
}
std::wstring DxvkStateCache::getCacheFileName() const {
str::path_string DxvkStateCache::getCacheFileName() const {
std::string path = getCacheDir();
if (!path.empty() && *path.rbegin() != '/')
@ -802,7 +802,7 @@ namespace dxvk {
std::string exeName = env::getExeBaseName();
path += exeName + ".dxvk-cache";
return str::tows(path.c_str());
return str::topath(path.c_str());
}

View File

@ -159,7 +159,7 @@ namespace dxvk {
void createWriter();
std::wstring getCacheFileName() const;
str::path_string getCacheFileName() const;
std::string getCacheDir() const;