...So there's no need to call NDSInitialize everytime

we load a rom.
This commit is contained in:
riccardom 2010-04-01 17:01:29 +00:00
parent 61933278a4
commit a4ffedc8df
1 changed files with 0 additions and 2 deletions

View File

@ -175,7 +175,6 @@ public:
wxFileDialog dialog(this,_T("Load Rom"),wxGetHomeDir(),_T(""),_T("*.nds"),wxFD_OPEN, wxDefaultPosition, wxDefaultSize);
if(dialog.ShowModal() == wxID_OK) {
history->AddFileToHistory(dialog.GetPath());
NDSInitialize();
execute = true;
NDS_LoadROM(dialog.GetPath().mb_str(), dialog.GetPath().mb_str());
}
@ -790,7 +789,6 @@ void DesmumeFrame::OnClose(wxCloseEvent &event) {
}
void DesmumeFrame::OnOpenRecent(wxCommandEvent &event) {
NDSInitialize();
execute = true;
NDS_LoadROM(history->GetHistoryFile(event.GetId()-wxID_FILE1).mb_str(),NULL);
}