From a4ffedc8dff3191503f9058da4d9e0e434ab96cc Mon Sep 17 00:00:00 2001 From: riccardom Date: Thu, 1 Apr 2010 17:01:29 +0000 Subject: [PATCH] ...So there's no need to call NDSInitialize everytime we load a rom. --- desmume/src/wx/wxMain.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/desmume/src/wx/wxMain.cpp b/desmume/src/wx/wxMain.cpp index b74be0aa1..26e650e16 100644 --- a/desmume/src/wx/wxMain.cpp +++ b/desmume/src/wx/wxMain.cpp @@ -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); }