mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
fixed convertion between const char * and wxString to make code compile
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@495 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8f04cf2f4b
commit
7230dc58da
@ -405,22 +405,26 @@ void CFrame::OnPlay(wxCommandEvent& WXUNUSED (event))
|
||||
}
|
||||
else if (!SConfig::GetInstance().m_LocalCoreStartupParameter.m_strDefaultGCM.empty())
|
||||
{
|
||||
if (wxFileExists(SConfig::GetInstance().m_LocalCoreStartupParameter.m_strDefaultGCM.c_str()))
|
||||
if (wxFileExists(wxString(SConfig::GetInstance().m_LocalCoreStartupParameter.m_strDefaultGCM.c_str(), wxConvUTF8)))
|
||||
{
|
||||
BootManager::BootCore(SConfig::GetInstance().m_LocalCoreStartupParameter.m_strDefaultGCM);
|
||||
}
|
||||
else
|
||||
{
|
||||
wxMessageBox("The default ISO you have set is invalid.\n"
|
||||
"Please pick on new one by right clicking on a game\n"
|
||||
"and selecting \"Set as default ISO\".", "Invalid Default ISO", wxOK, this);
|
||||
wxMessageBox(_("The default ISO you have set is invalid.\n"
|
||||
"Please pick on new one by right clicking on a game\n"
|
||||
"and selecting \"Set as default ISO\"."),
|
||||
_("Invalid Default ISO"),
|
||||
wxOK, this);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wxMessageBox("You can set an ISO to load by default.\n"
|
||||
"Choose one by right clicking on a game and selecting\n"
|
||||
"\"Set as default ISO\".", "Set Default ISO", wxOK, this);
|
||||
wxMessageBox(_("You can set an ISO to load by default.\n"
|
||||
"Choose one by right clicking on a game and selecting\n"
|
||||
"\"Set as default ISO\"."),
|
||||
_("Set Default ISO"),
|
||||
wxOK, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -288,7 +288,7 @@ void CGameListCtrl::ScanForISOs()
|
||||
|
||||
dialog.CenterOnParent();
|
||||
|
||||
for (int i = 0; i < rFilenames.size(); i++)
|
||||
for (u32 i = 0; i < rFilenames.size(); i++)
|
||||
{
|
||||
std::string FileName;
|
||||
SplitPath(rFilenames[i], NULL, &FileName, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user