Allow to open HEX editor when emulation is not paused + minor fix

This commit is contained in:
Alexey 'Cluster' Avdyukhin 2023-01-06 16:37:47 +04:00
parent e6e17ded38
commit 2c35a6dfae
2 changed files with 4 additions and 2 deletions

View File

@ -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())

View File

@ -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;