mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue