mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Linux: Fix so there isn't a trace/breakpoint trap when you get a panicalert and got the mem card reader to work
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@236 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
3ccc46a67e
commit
e3f3a7a41d
@ -52,7 +52,7 @@ void PanicAlert(const char* format, ...)
|
||||
//#error Do a messagebox!
|
||||
vprintf(format, args);
|
||||
printf("\n");
|
||||
asm ("int $3") ;
|
||||
// asm ("int $3") ;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -101,10 +101,10 @@ void CMemcardManager::OnPathChange(wxFileDirPickerEvent& event)
|
||||
switch(event.GetId())
|
||||
{
|
||||
case ID_MEMCARD1PATH:
|
||||
LoadMemcard1(event.GetPath());
|
||||
LoadMemcard1(event.GetPath().mb_str());
|
||||
break;
|
||||
case ID_MEMCARD2PATH:
|
||||
LoadMemcard2(event.GetPath());
|
||||
LoadMemcard2(event.GetPath().mb_str());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -175,10 +175,10 @@ void CMemcardManager::LoadMemcard1(const char *card1)
|
||||
if(!memoryCard1->GetComment2(i,comment2)) comment2[0]=0;
|
||||
|
||||
// Add to list control
|
||||
int index = m_Memcard1List->InsertItem(i, "row");
|
||||
m_Memcard1List->SetItem(index, 0, fileName);
|
||||
m_Memcard1List->SetItem(index, 1, comment1);
|
||||
m_Memcard1List->SetItem(index, 2, comment2);
|
||||
int index = m_Memcard1List->InsertItem(i, wxString::FromAscii("row"));
|
||||
m_Memcard1List->SetItem(index, 0, wxString::FromAscii(fileName));
|
||||
m_Memcard1List->SetItem(index, 1, wxString::FromAscii(comment1));
|
||||
m_Memcard1List->SetItem(index, 2, wxString::FromAscii(comment2));
|
||||
}
|
||||
m_Memcard1List->Show();
|
||||
}
|
||||
@ -188,7 +188,7 @@ void CMemcardManager::LoadMemcard1(const char *card1)
|
||||
|
||||
char tmp[128];
|
||||
sprintf(tmp, "Unable to load %s", card1);
|
||||
long item = m_Memcard1List->InsertItem(0, tmp);
|
||||
long item = m_Memcard1List->InsertItem(0, wxString::FromAscii(tmp));
|
||||
|
||||
m_Memcard1List->SetItemFont(item, *wxITALIC_FONT);
|
||||
m_Memcard1List->SetColumnWidth(item, wxLIST_AUTOSIZE);
|
||||
@ -227,10 +227,10 @@ void CMemcardManager::LoadMemcard2(const char *card2)
|
||||
if(!memoryCard2->GetComment1(i,comment1)) comment1[0]=0;
|
||||
if(!memoryCard2->GetComment2(i,comment2)) comment2[0]=0;
|
||||
|
||||
int index = m_Memcard2List->InsertItem(i, "row");
|
||||
m_Memcard2List->SetItem(index, 0, fileName);
|
||||
m_Memcard2List->SetItem(index, 1, comment1);
|
||||
m_Memcard2List->SetItem(index, 2, comment2);
|
||||
int index = m_Memcard2List->InsertItem(i, wxString::FromAscii("row"));
|
||||
m_Memcard2List->SetItem(index, 0, wxString::FromAscii(fileName));
|
||||
m_Memcard2List->SetItem(index, 1, wxString::FromAscii(comment1));
|
||||
m_Memcard2List->SetItem(index, 2, wxString::FromAscii(comment2));
|
||||
}
|
||||
m_Memcard2List->Show();
|
||||
}
|
||||
@ -240,7 +240,7 @@ void CMemcardManager::LoadMemcard2(const char *card2)
|
||||
|
||||
char tmp[128];
|
||||
sprintf(tmp, "Unable to load %s", card2);
|
||||
long item = m_Memcard2List->InsertItem(0, tmp);
|
||||
long item = m_Memcard2List->InsertItem(0, wxString::FromAscii(tmp));
|
||||
|
||||
m_Memcard2List->SetItemFont(item, *wxITALIC_FONT);
|
||||
m_Memcard2List->SetColumnWidth(item, wxLIST_AUTOSIZE);
|
||||
|
@ -1,8 +1,11 @@
|
||||
// gcmc.cpp: define el punto de entrada de la aplicación de consola.
|
||||
//
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "stdafx.h"
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#include <memory.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "GCMemcard.h"
|
||||
|
||||
|
@ -9,6 +9,8 @@ files = ["BootManager.cpp",
|
||||
"Globals.cpp",
|
||||
"ISOFile.cpp",
|
||||
"Main.cpp",
|
||||
"MemcardManager.cpp",
|
||||
"MemoryCards/GCMemcard.cpp",
|
||||
# "MainNoGUI.cpp",
|
||||
"PluginManager.cpp",
|
||||
"PluginOptions.cpp",
|
||||
|
Loading…
Reference in New Issue
Block a user