From 759102850970ce918da1c0359b04e9e47436289b Mon Sep 17 00:00:00 2001 From: Yackerw Date: Sat, 15 Aug 2020 20:07:34 -0400 Subject: [PATCH] Removed Windows specific stuff --- desmume/src/NDSSystem.cpp | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index a45c64a27..5cc1a71e7 100755 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -59,7 +59,6 @@ #include "wifi.h" #include "Database.h" #include "frontend/modules/Disassembler.h" -#include "frontend/windows/disView.h" #include "display.h" #ifdef GDB_STUB @@ -1923,8 +1922,8 @@ static /*donotinline*/ std::pair armInnerLoop( paused = true; execute = false; // update debug display - PostMessageA(DisViewWnd[0], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM9.instruct_adr); - InvalidateRect(DisViewWnd[0], NULL, FALSE); + //PostMessageA(DisViewWnd[0], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM9.instruct_adr); + //InvalidateRect(DisViewWnd[0], NULL, FALSE); return std::make_pair(arm9, arm7); } } @@ -1934,8 +1933,8 @@ static /*donotinline*/ std::pair armInnerLoop( paused = true; execute = false; // update debug display - PostMessageA(DisViewWnd[1], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM7.instruct_adr); - InvalidateRect(DisViewWnd[1], NULL, FALSE); + //PostMessageA(DisViewWnd[1], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM7.instruct_adr); + //InvalidateRect(DisViewWnd[1], NULL, FALSE); return std::make_pair(arm9, arm7); } } @@ -1965,14 +1964,14 @@ static /*donotinline*/ std::pair armInnerLoop( if (NDS_ARM9.debugStep) { NDS_ARM9.debugStep = false; execute = false; - PostMessageA(DisViewWnd[0], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM9.instruct_adr); - InvalidateRect(DisViewWnd[0], NULL, FALSE); + //PostMessageA(DisViewWnd[0], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM9.instruct_adr); + //InvalidateRect(DisViewWnd[0], NULL, FALSE); } if (NDS_ARM9.stepOverBreak == NDS_ARM9.instruct_adr && NDS_ARM9.stepOverBreak != 0) { NDS_ARM9.stepOverBreak = 0; execute = false; - PostMessageA(DisViewWnd[0], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM9.instruct_adr); - InvalidateRect(DisViewWnd[0], NULL, FALSE); + //PostMessageA(DisViewWnd[0], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM9.instruct_adr); + //InvalidateRect(DisViewWnd[0], NULL, FALSE); } // aaand handle step to return if (NDS_ARM9.runToRetTmp != 0 && NDS_ARM9.runToRetTmp == NDS_ARM9.instruct_adr) { @@ -2013,14 +2012,14 @@ static /*donotinline*/ std::pair armInnerLoop( if (NDS_ARM7.debugStep) { NDS_ARM7.debugStep = false; execute = false; - PostMessageA(DisViewWnd[1], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM7.instruct_adr); - InvalidateRect(DisViewWnd[1], NULL, FALSE); + //PostMessageA(DisViewWnd[1], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM7.instruct_adr); + //InvalidateRect(DisViewWnd[1], NULL, FALSE); } if (NDS_ARM7.stepOverBreak == NDS_ARM7.instruct_adr && NDS_ARM7.stepOverBreak != 0) { NDS_ARM7.stepOverBreak = 0; execute = false; - PostMessageA(DisViewWnd[1], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM7.instruct_adr); - InvalidateRect(DisViewWnd[1], NULL, FALSE); + //PostMessageA(DisViewWnd[1], WM_COMMAND, IDC_DISASMSEEK, NDS_ARM7.instruct_adr); + //InvalidateRect(DisViewWnd[1], NULL, FALSE); } // aaand handle step to return if (NDS_ARM7.runToRetTmp != 0 && NDS_ARM7.runToRetTmp == NDS_ARM7.instruct_adr) {