mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
fixes issue 1223. Caused by switch to wx unicode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3917 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
acdbc70fe9
commit
dedb2a5fcc
@ -890,7 +890,7 @@ void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
|
||||
SConfig::GetInstance().m_ISOFolder.clear();
|
||||
|
||||
for (unsigned int i = 0; i < ISOPaths->GetCount(); i++)
|
||||
SConfig::GetInstance().m_ISOFolder.push_back(std::string(ISOPaths->GetStrings()[i].ToAscii()));
|
||||
SConfig::GetInstance().m_ISOFolder.push_back(std::string(ISOPaths->GetStrings()[i].mb_str(wxConvUTF8)));
|
||||
}
|
||||
|
||||
void CConfigMain::RecursiveDirectoryChanged(wxCommandEvent& WXUNUSED (event))
|
||||
|
@ -159,7 +159,7 @@ void CGameListCtrl::BrowseForDirectory()
|
||||
|
||||
if (dialog.ShowModal() == wxID_OK)
|
||||
{
|
||||
std::string sPath(dialog.GetPath().ToAscii());
|
||||
std::string sPath(dialog.GetPath().mb_str(wxConvUTF8));
|
||||
std::vector<std::string>::iterator itResult = std::find(
|
||||
SConfig::GetInstance().m_ISOFolder.begin(), SConfig::GetInstance().m_ISOFolder.end(), sPath
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user