mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
unicode fixings, disable r3999 change, change filename for debug memcardmanager
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4041 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
16d9a65d25
commit
9fcb1db34f
@ -322,7 +322,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="comctl32.lib rpcrt4.lib winmm.lib"
|
AdditionalDependencies="comctl32.lib rpcrt4.lib winmm.lib"
|
||||||
OutputFile=""../../Binary/Win32/MemoryCardManager.exe""
|
OutputFile=""../../Binary/Win32/MemoryCardManagerD.exe""
|
||||||
Version=""
|
Version=""
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@ -439,7 +439,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="comctl32.lib rpcrt4.lib"
|
AdditionalDependencies="comctl32.lib rpcrt4.lib"
|
||||||
OutputFile="../../../Binary/x64/MemoryCardManager.exe"
|
OutputFile="../../../Binary/x64/MemoryCardManagerD.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
AdditionalLibraryDirectories=""
|
AdditionalLibraryDirectories=""
|
||||||
|
@ -423,8 +423,10 @@ void CEXIMemoryCard::TransferByte(u8 &byte)
|
|||||||
|
|
||||||
void CEXIMemoryCard::DoState(PointerWrap &p)
|
void CEXIMemoryCard::DoState(PointerWrap &p)
|
||||||
{
|
{
|
||||||
|
#if 0 // Makes savestates worse for 1st party games (SMS, ZWW) but better for third party games
|
||||||
int slot = 0;
|
int slot = 0;
|
||||||
if (GetFileName() == SConfig::GetInstance().m_strMemoryCardA)
|
if (GetFileName() == SConfig::GetInstance().m_strMemoryCardA)
|
||||||
slot = 1;
|
slot = 1;
|
||||||
ExpansionInterface::ChangeDevice(slot, slot ? EXIDEVICE_MEMORYCARD_B : EXIDEVICE_MEMORYCARD_A, 0);
|
ExpansionInterface::ChangeDevice(slot, slot ? EXIDEVICE_MEMORYCARD_B : EXIDEVICE_MEMORYCARD_A, 0);
|
||||||
|
#endif
|
||||||
}
|
}
|
@ -866,7 +866,7 @@ void CGameListCtrl::OnInstallWAD(wxCommandEvent& WXUNUSED (event))
|
|||||||
|
|
||||||
void CGameListCtrl::MultiCompressCB(const char* text, float percent, void* arg)
|
void CGameListCtrl::MultiCompressCB(const char* text, float percent, void* arg)
|
||||||
{
|
{
|
||||||
wxString textString(wxString::Format(wxT("%s (%i/%i) - %s"), m_currentFilename.c_str(), (int)m_currentItem+1, (int)m_numberItem, text));
|
wxString textString(wxString::FromAscii(StringFromFormat("%s (%i/%i) - %s", m_currentFilename.c_str(), (int)m_currentItem+1, (int)m_numberItem, text).c_str()));
|
||||||
|
|
||||||
percent = (((float)m_currentItem) + percent) / (float)m_numberItem;
|
percent = (((float)m_currentItem) + percent) / (float)m_numberItem;
|
||||||
wxProgressDialog* pDialog = (wxProgressDialog*)arg;
|
wxProgressDialog* pDialog = (wxProgressDialog*)arg;
|
||||||
|
@ -113,7 +113,7 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
|
|||||||
if (GameIni.Load(GameIniFile.c_str()))
|
if (GameIni.Load(GameIniFile.c_str()))
|
||||||
LoadGameConfig();
|
LoadGameConfig();
|
||||||
else
|
else
|
||||||
wxMessageBox(wxString::Format(_("Could not create %s"), GameIniFile.c_str()), _("Error"), wxOK|wxICON_ERROR, this);
|
wxMessageBox(wxString::Format(_("Could not create %s"), wxString::FromAscii(GameIniFile.c_str()).c_str()), _("Error"), wxOK|wxICON_ERROR, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disk header and apploader
|
// Disk header and apploader
|
||||||
@ -122,37 +122,37 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
|
|||||||
switch (OpenISO->GetCountry())
|
switch (OpenISO->GetCountry())
|
||||||
{
|
{
|
||||||
case DiscIO::IVolume::COUNTRY_EUROPE:
|
case DiscIO::IVolume::COUNTRY_EUROPE:
|
||||||
m_Country->SetValue(wxString::FromAscii("EUROPE"));
|
m_Country->SetValue(wxT("EUROPE"));
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_FRANCE:
|
case DiscIO::IVolume::COUNTRY_FRANCE:
|
||||||
m_Country->SetValue(wxString::FromAscii("FRANCE"));
|
m_Country->SetValue(wxT("FRANCE"));
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_ITALY:
|
case DiscIO::IVolume::COUNTRY_ITALY:
|
||||||
m_Country->SetValue(wxString::FromAscii("ITALY"));
|
m_Country->SetValue(wxT("ITALY"));
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_USA:
|
case DiscIO::IVolume::COUNTRY_USA:
|
||||||
m_Country->SetValue(wxString::FromAscii("USA"));
|
m_Country->SetValue(wxT("USA"));
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_JAPAN:
|
case DiscIO::IVolume::COUNTRY_JAPAN:
|
||||||
m_Country->SetValue(wxString::FromAscii("JAPAN"));
|
m_Country->SetValue(wxT("JAPAN"));
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_KOREA:
|
case DiscIO::IVolume::COUNTRY_KOREA:
|
||||||
m_Country->SetValue(wxString::FromAscii("KOREA"));
|
m_Country->SetValue(wxT("KOREA"));
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_TAIWAN:
|
case DiscIO::IVolume::COUNTRY_TAIWAN:
|
||||||
m_Country->SetValue(wxString::FromAscii("TAIWAN"));
|
m_Country->SetValue(wxT("TAIWAN"));
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_SDK:
|
case DiscIO::IVolume::COUNTRY_SDK:
|
||||||
m_Country->SetValue(wxString::FromAscii("No Country (SDK)"));
|
m_Country->SetValue(wxT("No Country (SDK)"));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_Country->SetValue(wxString::FromAscii("UNKNOWN"));
|
m_Country->SetValue(wxT("UNKNOWN"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
wxString temp;
|
wxString temp;
|
||||||
temp = _T("0x") + wxString::FromAscii(OpenISO->GetMakerID().c_str());
|
temp = _T("0x") + wxString::FromAscii(OpenISO->GetMakerID().c_str());
|
||||||
m_MakerID->SetValue(temp);
|
m_MakerID->SetValue(temp);
|
||||||
m_Date->SetValue(wxString(OpenISO->GetApploaderDate().c_str(), wxConvUTF8));
|
m_Date->SetValue(wxString::FromAscii(OpenISO->GetApploaderDate().c_str()));
|
||||||
m_FST->SetValue(wxString::Format(_T("%u"), OpenISO->GetFSTSize()));
|
m_FST->SetValue(wxString::Format(_T("%u"), OpenISO->GetFSTSize()));
|
||||||
|
|
||||||
// Banner
|
// Banner
|
||||||
@ -526,7 +526,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
void CISOProperties::OnClose(wxCloseEvent& WXUNUSED (event))
|
void CISOProperties::OnClose(wxCloseEvent& WXUNUSED (event))
|
||||||
{
|
{
|
||||||
if (!SaveGameConfig())
|
if (!SaveGameConfig())
|
||||||
wxMessageBox(wxString::Format(_("Could not save %s"), GameIniFile.c_str()), _("Error"), wxOK|wxICON_ERROR, this);
|
wxMessageBox(wxString::Format(_("Could not save %s"), wxString::FromAscii(GameIniFile.c_str())), _("Error"), wxOK|wxICON_ERROR, this);
|
||||||
|
|
||||||
EndModal(bRefreshList ? wxID_OK : wxID_CANCEL);
|
EndModal(bRefreshList ? wxID_OK : wxID_CANCEL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user