[util] Introduce topath helper

Manages converting strings to the right type for paths per-platform
This commit is contained in:
Joshua Ashton 2022-08-09 12:13:23 +01:00 committed by Joshie
parent d9000485ea
commit 5de058e14a
1 changed files with 6 additions and 0 deletions

View File

@ -176,6 +176,12 @@ namespace dxvk::str {
* \returns Wide string object
*/
std::wstring tows(const char* mbs);
#ifdef _WIN32
inline std::wstring topath(const char* mbs) { return tows(mbs); }
#else
inline std::string topath(const char* mbs) { return std::string(mbs); }
#endif
inline void format1(std::stringstream&) { }