Debugger and hex editor fix for Vs. System ROMs

This commit is contained in:
Alexey 'Cluster' Avdyukhin 2023-01-07 19:46:10 +04:00
parent c9cdca11c4
commit d1368c8213
2 changed files with 2 additions and 2 deletions

View File

@ -2752,7 +2752,7 @@ void UpdatePatcher(HWND hwndDlg){
EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_PATCH_DATA),FALSE); EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_PATCH_DATA),FALSE);
EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_BTN_APPLY),FALSE); EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_BTN_APPLY),FALSE);
} }
if(GameInfo->type != GIT_CART)EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_BTN_SAVE),FALSE); if((GameInfo->type != GIT_CART) && (GameInfo->type != GIT_VSUNI))EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_BTN_SAVE),FALSE);
else EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_BTN_SAVE),TRUE); else EnableWindow(GetDlgItem(hwndDlg,IDC_ROMPATCHER_BTN_SAVE),TRUE);
} }

View File

@ -1105,7 +1105,7 @@ int iNesSaveAs(const char* name)
//caitsith2: done. iNesSave() now gets filename and calls iNesSaveAs with that filename. //caitsith2: done. iNesSave() now gets filename and calls iNesSaveAs with that filename.
FILE *fp; FILE *fp;
if (GameInfo->type != GIT_CART) return 0; if ((GameInfo->type != GIT_CART) && (GameInfo->type != GIT_VSUNI)) return 0;
if (GameInterface != iNESGI) return 0; if (GameInterface != iNESGI) return 0;
fp = fopen(name, "wb"); fp = fopen(name, "wb");