mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Kill some unnecessary c_str and use StrToWxStr in a few places that I missed.
This commit is contained in:
parent
56f09d3b91
commit
03ec9a2e08
20 changed files with 53 additions and 52 deletions
|
@ -982,9 +982,9 @@ void CConfigMain::AddAudioBackends()
|
|||
for (std::vector<std::string>::const_iterator iter = backends.begin();
|
||||
iter != backends.end(); ++iter)
|
||||
{
|
||||
BackendSelection->Append(StrToWxStr((*iter).c_str()));
|
||||
BackendSelection->Append(StrToWxStr(*iter));
|
||||
int num = BackendSelection->\
|
||||
FindString(StrToWxStr(SConfig::GetInstance().sBackend.c_str()));
|
||||
FindString(StrToWxStr(SConfig::GetInstance().sBackend));
|
||||
BackendSelection->SetSelection(num);
|
||||
}
|
||||
}
|
||||
|
@ -1269,8 +1269,9 @@ void CConfigMain::ApploaderPathChanged(wxFileDirPickerEvent& WXUNUSED (event))
|
|||
void CConfigMain::NANDRootChanged(wxFileDirPickerEvent& WXUNUSED (event))
|
||||
{
|
||||
std::string NANDPath =
|
||||
SConfig::GetInstance().m_NANDPath = File::GetUserPath(D_WIIROOT_IDX, WxStrToStr(NANDRoot->GetPath()));
|
||||
NANDRoot->SetPath(wxString(NANDPath));
|
||||
SConfig::GetInstance().m_NANDPath =
|
||||
File::GetUserPath(D_WIIROOT_IDX, WxStrToStr(NANDRoot->GetPath()));
|
||||
NANDRoot->SetPath(StrToWxStr(NANDPath));
|
||||
SConfig::GetInstance().m_SYSCONF->UpdateLocation();
|
||||
DiscIO::cUIDsys::AccessInstance().UpdateLocation();
|
||||
DiscIO::CSharedContent::AccessInstance().UpdateLocation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue