mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 00:41:19 +12:00
Code clean up + replace some wstring instances with utf8 (#640)
This commit is contained in:
parent
ca79a6aa0d
commit
f3ff919be2
41 changed files with 163 additions and 641 deletions
|
@ -17,10 +17,16 @@ namespace wxHelper
|
|||
return fs::path(sv);
|
||||
}
|
||||
|
||||
inline wxString FromUtf8(std::string_view str)
|
||||
{
|
||||
return wxString::FromUTF8(str.data(), str.size());
|
||||
}
|
||||
inline wxString FromUtf8(std::string_view str)
|
||||
{
|
||||
return wxString::FromUTF8(str.data(), str.size());
|
||||
}
|
||||
|
||||
inline wxString FromPath(const fs::path& path)
|
||||
{
|
||||
std::string str = _pathToUtf8(path);
|
||||
return wxString::FromUTF8(str.data(), str.size());
|
||||
}
|
||||
|
||||
inline wxColour CalculateAccentColour(const wxColour& bgColour)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue