From 2c35a6dfaef3a3dfd73de62410a98d2487d5e2c8 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Fri, 6 Jan 2023 16:37:47 +0400 Subject: [PATCH] Allow to open HEX editor when emulation is not paused + minor fix --- src/drivers/win/debugger.cpp | 2 +- src/vsuni.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drivers/win/debugger.cpp b/src/drivers/win/debugger.cpp index 8c3156a2..5e425c82 100644 --- a/src/drivers/win/debugger.cpp +++ b/src/drivers/win/debugger.cpp @@ -2422,7 +2422,7 @@ INT_PTR CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP int mouse_x = GET_X_LPARAM(lParam); int mouse_y = GET_Y_LPARAM(lParam); //mbg merge 7/18/06 changed pausing check - if (FCEUI_EmulationPaused() && (mouse_x > 6) && (mouse_x < 30) && (mouse_y > 10)) + if ((mouse_x > 6) && (mouse_x < 30) && (mouse_y > 10)) { int tmp = (mouse_y - 10) / debugSystem->disasmFontHeight; if (tmp < (int)disassembly_addresses.size()) diff --git a/src/vsuni.cpp b/src/vsuni.cpp index ea6c173b..de5dc111 100644 --- a/src/vsuni.cpp +++ b/src/vsuni.cpp @@ -319,9 +319,11 @@ void FCEU_VSUniCheck(uint64 md5partial, int *MapperNo, uint8 *Mirroring) { tofix |= 32; GameInfo->input[0] = SI_ZAPPER; GameInfo->input[1] = SI_NONE; + GameInfo->inputfc = SIFC_NONE; } - else if (!head.expansion == 0) { + else if (!head.expansion) { GameInfo->input[0] = GameInfo->input[1] = SI_GAMEPAD; + GameInfo->inputfc = SIFC_NONE; } if ((vs->ioption & VS_OPTION_SWAPDIRAB) && !GameInfo->vs_cswitch) { tofix |= 64;