mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
add back fused gui log classes, this needs to be redone another way
also, add back wx requirement for strfmt
This commit is contained in:
parent
10e10de98d
commit
ed10ea7544
12 changed files with 332 additions and 333 deletions
|
@ -54,23 +54,22 @@ std::string replace_all(std::string src, const std::string& from, const std::str
|
|||
return src;
|
||||
}
|
||||
|
||||
//#ifdef wxGUI
|
||||
////convert a wxString to a std::string encoded in utf8
|
||||
////CAUTION, only use this to interface with wxWidgets classes
|
||||
//std::string fmt::ToUTF8(const wxString& right)
|
||||
//{
|
||||
// auto ret = std::string(((const char *) right.utf8_str()));
|
||||
// return ret;
|
||||
//}
|
||||
//
|
||||
////convert a std::string encoded in utf8 to a wxString
|
||||
////CAUTION, only use this to interface with wxWidgets classes
|
||||
//wxString fmt::FromUTF8(const std::string& right)
|
||||
//{
|
||||
// auto ret = wxString::FromUTF8(right.c_str());
|
||||
// return ret;
|
||||
//}
|
||||
//#endif
|
||||
//TODO: move this wx Stuff somewhere else
|
||||
//convert a wxString to a std::string encoded in utf8
|
||||
//CAUTION, only use this to interface with wxWidgets classes
|
||||
std::string fmt::ToUTF8(const wxString& right)
|
||||
{
|
||||
auto ret = std::string(((const char *)right.utf8_str()));
|
||||
return ret;
|
||||
}
|
||||
|
||||
//convert a std::string encoded in utf8 to a wxString
|
||||
//CAUTION, only use this to interface with wxWidgets classes
|
||||
wxString fmt::FromUTF8(const std::string& right)
|
||||
{
|
||||
auto ret = wxString::FromUTF8(right.c_str());
|
||||
return ret;
|
||||
}
|
||||
|
||||
//TODO: remove this after every snippet that uses it is gone
|
||||
//WARNING: not fully compatible with CmpNoCase from wxString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue