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

[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

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&) { }