From e9f115c0bcb7eedf8dfd7abdcf24647510208149 Mon Sep 17 00:00:00 2001 From: Filjo Abraham Date: Thu, 9 Apr 2020 00:31:11 -0500 Subject: [PATCH] Only compile OnCheckCart for debug build --- GUI/MainFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GUI/MainFrame.cpp b/GUI/MainFrame.cpp index 26e35e0..d83fa11 100644 --- a/GUI/MainFrame.cpp +++ b/GUI/MainFrame.cpp @@ -130,6 +130,7 @@ void MainFrame::OnAbout(wxCommandEvent& evt) wxAboutBox(info, this); } +#ifdef _DEBUG void MainFrame::OnCheckCart(wxCommandEvent& evt) { if (cart->isValid()) @@ -141,3 +142,4 @@ void MainFrame::OnCheckCart(wxCommandEvent& evt) wxMessageBox("ROM is invalid"); } } +#endif