mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[util] Define platform path_string type
This commit is contained in:
parent
eda3ba6372
commit
9509ec1144
@ -178,9 +178,11 @@ namespace dxvk::str {
|
||||
std::wstring tows(const char* mbs);
|
||||
|
||||
#ifdef _WIN32
|
||||
inline std::wstring topath(const char* mbs) { return tows(mbs); }
|
||||
using path_string = std::wstring;
|
||||
inline path_string topath(const char* mbs) { return tows(mbs); }
|
||||
#else
|
||||
inline std::string topath(const char* mbs) { return std::string(mbs); }
|
||||
using path_string = std::string;
|
||||
inline path_string topath(const char* mbs) { return std::string(mbs); }
|
||||
#endif
|
||||
|
||||
inline void format1(std::stringstream&) { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user