mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-13 05:39:07 -04:00
Update Windows AutoStart implementation to allow non-ASCII paths
This commit is contained in:
1 parent
046a1bae65
commit
41b7087e20
4 files changed
+25
-32
No files matched your search
@@ -90,6 +90,13 @@ std::string StringUtils::wstring_to_string(const std::wstring wstring)
|
||||
return(converter.to_bytes(wstring));
|
||||
}
|
||||
|
||||
std::wstring StringUtils::string_to_wstring(const std::string input)
|
||||
{
|
||||
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converter;
|
||||
|
||||
return(converter.from_bytes(input));
|
||||
}
|
||||
|
||||
std::string StringUtils::u16string_to_string(const std::u16string wstring)
|
||||
{
|
||||
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> converter;
|
||||
|
||||
Reference in new issue
Block a user