diff --git a/src/dxvk/dxvk_state_cache.cpp b/src/dxvk/dxvk_state_cache.cpp index 92962dacf..fa3322821 100644 --- a/src/dxvk/dxvk_state_cache.cpp +++ b/src/dxvk/dxvk_state_cache.cpp @@ -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()); } diff --git a/src/dxvk/dxvk_state_cache.h b/src/dxvk/dxvk_state_cache.h index 1fae1b097..3df28a4f9 100644 --- a/src/dxvk/dxvk_state_cache.h +++ b/src/dxvk/dxvk_state_cache.h @@ -159,7 +159,7 @@ namespace dxvk { void createWriter(); - std::wstring getCacheFileName() const; + str::path_string getCacheFileName() const; std::string getCacheDir() const;