mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fixed Issue 2005
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4820 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -655,7 +655,6 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
if (memoryCard[card]->fail) return false;
|
||||
|
||||
int j;
|
||||
bool ascii = memoryCard[card]->IsAsciiEncoding();
|
||||
|
||||
wxString wxTitle,
|
||||
wxComment,
|
||||
@ -758,16 +757,10 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
if (!memoryCard[card]->DEntry_Comment1(j, title)) title[0]=0;
|
||||
if (!memoryCard[card]->DEntry_Comment2(j, comment)) comment[0]=0;
|
||||
|
||||
if (ascii)
|
||||
{
|
||||
wxTitle = wxString::FromAscii(title);
|
||||
wxComment = wxString::FromAscii(comment);
|
||||
}
|
||||
else
|
||||
{
|
||||
WxUtils::CopySJISToString(wxTitle, title);
|
||||
WxUtils::CopySJISToString(wxComment, comment);
|
||||
}
|
||||
wxCSConv SJISConv(wxT("SHIFT_JIS"));
|
||||
wxTitle = wxString(title, SJISConv);
|
||||
wxComment = wxString(comment, SJISConv);
|
||||
|
||||
m_MemcardList[card]->SetItem(index, COLUMN_TITLE, wxTitle);
|
||||
m_MemcardList[card]->SetItem(index, COLUMN_COMMENT, wxComment);
|
||||
|
||||
|
Reference in New Issue
Block a user