mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
some more fixes for the switch to unicode. Thanks sl1nk3.s
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3925 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -291,7 +291,7 @@ void CMemcardManager::CreateGUIControls()
|
||||
m_Delete[i]->Disable();
|
||||
if (strcmp(DefaultMemcard[i].c_str(), "."))
|
||||
{
|
||||
m_MemcardPath[i]->SetPath(wxString::FromAscii(DefaultMemcard[i].c_str()));
|
||||
m_MemcardPath[i]->SetPath(wxString::FromAscii(DefaultMemcard[i].c_str()));
|
||||
ChangePath(ID_MEMCARDPATH_A + i);
|
||||
}
|
||||
}
|
||||
@ -564,7 +564,7 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
|
||||
wxFileSelectorDefaultWildcardStr
|
||||
),
|
||||
wxFD_OPEN | wxFD_FILE_MUST_EXIST);
|
||||
const char * fileName = temp.ToAscii();
|
||||
const char * fileName = temp.mb_str();
|
||||
if (!temp.empty() && !fileName2.empty())
|
||||
{
|
||||
wxString temp2 = wxFileSelector(wxT("Save GCI as.."),
|
||||
@ -608,10 +608,10 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
|
||||
|
||||
if (temp.length() > 0)
|
||||
{
|
||||
const char * fileName = temp.ToAscii();
|
||||
const char * fileName = temp.mb_str();
|
||||
if (!CopyDeleteSwitch(memoryCard[slot]->ExportGci(index, fileName, NULL), -1))
|
||||
{
|
||||
File::Delete(temp.ToAscii());
|
||||
File::Delete(temp.mb_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user