Skip to content

Commit

Permalink
disable VBA-M tools in hardcore mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Oct 26, 2018
1 parent efbd7bc commit 2c9f49f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions RAVBA-M/src/win32/MainWndTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ extern void remoteSetSockets(SOCKET, SOCKET);

void MainWnd::OnToolsDisassemble()
{
if (!RA_WarnDisableHardcore("disassemble"))
return;

if(theApp.cartridgeType == 0) {
Disassemble *dlg = new Disassemble();
dlg->Create(IDD_DISASSEMBLE, this);
Expand Down Expand Up @@ -84,6 +87,9 @@ void MainWnd::OnUpdateToolsIoviewer(CCmdUI* pCmdUI)

void MainWnd::OnToolsMapview()
{
if (!RA_WarnDisableHardcore("view maps"))
return;

if(theApp.cartridgeType == 0) {
MapView *dlg = new MapView;
dlg->Create(IDD_MAP_VIEW, this);
Expand All @@ -102,6 +108,9 @@ void MainWnd::OnUpdateToolsMapview(CCmdUI* pCmdUI)

void MainWnd::OnToolsMemoryviewer()
{
if (!RA_WarnDisableHardcore("view memory"))
return;

if(theApp.cartridgeType == 0) {
MemoryViewerDlg *dlg = new MemoryViewerDlg;
dlg->Create(IDD_MEM_VIEWER, this);
Expand Down Expand Up @@ -184,6 +193,9 @@ void MainWnd::OnDebugNextframe()

void MainWnd::OnToolsDebugGdb()
{
if (!RA_WarnDisableHardcore("debug"))
return;

GDBPortDlg dlg;

if(dlg.DoModal()) {
Expand Down Expand Up @@ -524,6 +536,9 @@ void MainWnd::OnUpdateToolsRecordStopmovierecording(CCmdUI* pCmdUI)

void MainWnd::OnToolsPlayStartmovieplaying()
{
if (!RA_WarnDisableHardcore("play a movie"))
return;

static bool moviePlayMessage = false;

if(!moviePlayMessage) {
Expand Down

0 comments on commit 2c9f49f

Please sign in to comment.