Skip to content

Commit

Permalink
NoHack fix
Browse files Browse the repository at this point in the history
Auto uncheck options.
Forgot a file.
  • Loading branch information
SonofUgly committed Nov 3, 2015
1 parent 9306cee commit f2628cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions libpcsxcore/psxcommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ typedef struct {
u32 AltSpeed2;
u8 HackFix;
u8 MemHack;
u8 NoHack;
#ifdef _WIN32
char Lang[256];
#endif
Expand Down
10 changes: 9 additions & 1 deletion win32/gui/WndMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar
EnableWindow(GetDlgItem(hW, IDC_DEBUG), FALSE);
}

if (Config.NoHack == 1) {
if (Config.NoHack) {
Config.Xa = 0;
Config.Mdec = 0;
Config.Cdda = 0;
Expand Down Expand Up @@ -1497,6 +1497,14 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar
EnableWindow(GetDlgItem(hW, IDC_WIDESCREEN), FALSE);
EnableWindow(GetDlgItem(hW, IDC_HACKFIX), FALSE);
EnableWindow(GetDlgItem(hW, IDC_MEMHACK), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_XA), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_MDEC), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_CDDA), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_RCNTFIX), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_VSYNCWA), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_WIDESCREEN), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_HACKFIX), FALSE);
Button_SetCheck(GetDlgItem(hW, IDC_MEMHACK), FALSE);
}
else {
EnableWindow(GetDlgItem(hW, IDC_XA), TRUE);
Expand Down

0 comments on commit f2628cb

Please sign in to comment.