Skip to content

Commit

Permalink
Only compile OnCheckCart for debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
MonJamp committed Apr 9, 2020
1 parent 047f133 commit e9f115c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GUI/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ void MainFrame::OnAbout(wxCommandEvent& evt)
wxAboutBox(info, this);
}

#ifdef _DEBUG
void MainFrame::OnCheckCart(wxCommandEvent& evt)
{
if (cart->isValid())
Expand All @@ -141,3 +142,4 @@ void MainFrame::OnCheckCart(wxCommandEvent& evt)
wxMessageBox("ROM is invalid");
}
}
#endif

0 comments on commit e9f115c

Please sign in to comment.