small code fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1106 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-11-09 20:55:04 +00:00
parent 475daf0331
commit 814d3ddb0e
4 changed files with 7 additions and 6 deletions

View File

@ -434,8 +434,8 @@ void CFrame::OnPlay(wxCommandEvent& WXUNUSED (event))
void CFrame::OnStop(wxCommandEvent& WXUNUSED (event)) void CFrame::OnStop(wxCommandEvent& WXUNUSED (event))
{ {
// Ask for confirmation in case the user accidently clicked Stop // Ask for confirmation in case the user accidently clicked Stop
int answer = wxMessageBox("Are you sure you want to stop the current emulation?", int answer = wxMessageBox(wxT("Are you sure you want to stop the current emulation?"),
"Confirm", wxYES_NO); wxT("Confirm"), wxYES_NO);
if (answer == wxYES && Core::GetState() != Core::CORE_UNINITIALIZED) if (answer == wxYES && Core::GetState() != Core::CORE_UNINITIALIZED)
{ {

View File

@ -299,7 +299,7 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
freeblocks = BE16(memoryCard[slot]->bat.FreeBlocks); freeblocks = BE16(memoryCard[slot]->bat.FreeBlocks);
{ {
wxString Foobar; wxString Foobar;
Foobar.Printf("Only %d blocks available", freeblocks); Foobar.Printf(wxT("Only %d blocks available"), freeblocks);
wxMessageBox(Foobar,wxT("Failure"),wxOK); wxMessageBox(Foobar,wxT("Failure"),wxOK);
} }
break; break;

View File

@ -181,9 +181,10 @@ SetTitle(wxT("Sound Debugging"));
m_settings->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)); m_settings->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE));
m_settings->SetMinSize(wxSize(m_settings->GetSize().GetWidth() - 40, m_settings->SetMinSize(wxSize(m_settings->GetSize().GetWidth() - 40,
m_settings->GetCount() * 15)); m_settings->GetCount() * 15));
#ifdef _WIN32
for (int i = 0; i < m_settings->GetCount(); ++i) for (int i = 0; i < m_settings->GetCount(); ++i)
m_settings->GetItem(i)->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)); m_settings->GetItem(i)->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE));
#endif
m_checkSizer2->Add(m_settings, 0, 0, 0); m_checkSizer2->Add(m_settings, 0, 0, 0);
// ------------------------ // ------------------------

View File

@ -55,7 +55,7 @@ is closed */
// ------------- // -------------
void startConsoleWin(int width, int height, char* fname) void startConsoleWin(int width, int height, char* fname)
{ {
#if defined(DEBUG_HLE) defined(_WIN32) #if defined(DEBUG_HLE) && defined(_WIN32)
AllocConsole(); AllocConsole();