mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[util] Define platform path_string type
This commit is contained in:
parent
eda3ba6372
commit
9509ec1144
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue