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:
parent
d9000485ea
commit
5de058e14a
@ -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&) { }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user