Win32 - fix bug - cheats dialog - toggling a cheat in the cheats list box now updates active cheats count

This commit is contained in:
adelikat 2010-03-02 04:06:36 +00:00
parent d9f59e45f6
commit 9149cf5326
2 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,4 @@
01-march-2010 - adelikat - win32 - cheats dialog - toggling a cheat in the cheats list now updates the active cheats count
01-march-2010 - adelikat - win32 - a disable movie messages menu item
25-feb-2010 - prockguy - unix netplay is now functional; gtk network gui created
24-feb-2010 - prockguy - GTK - added basic movie controls

View File

@ -464,16 +464,16 @@ BOOL CALLBACK CheatConsoleCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
if (EmulationPaused == 1) //We only want to send info to memwatch if paused
{ //otherwise we will be sending info while it is updating causing unpredictable behavior
lbfocus=1;
SendDlgItemMessage(hwndDlg,
IDC_CHEAT_LIST_POSSIBILITIES,
LB_GETTEXT,
SendDlgItemMessage(hwndDlg,
IDC_CHEAT_LIST_POSSIBILITIES,
LB_GETCURSEL,0,0),
(LPARAM)(LPCTSTR)str);
strcpy(str2,str+1);
str2[4] = 0;
AddMemWatch(str2);
SendDlgItemMessage(hwndDlg,
IDC_CHEAT_LIST_POSSIBILITIES,
LB_GETTEXT,
SendDlgItemMessage(hwndDlg,
IDC_CHEAT_LIST_POSSIBILITIES,
LB_GETCURSEL,0,0),
(LPARAM)(LPCTSTR)str);
strcpy(str2,str+1);
str2[4] = 0;
AddMemWatch(str2);
}
break;
case IDC_LIST_CHEATS:
@ -488,6 +488,7 @@ BOOL CALLBACK CheatConsoleCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
SendDlgItemMessage(hwndDlg,IDC_LIST_CHEATS,LB_DELETESTRING,selcheat,0);
SendDlgItemMessage(hwndDlg,IDC_LIST_CHEATS,LB_INSERTSTRING,selcheat,(LPARAM)(LPSTR)str);
SendDlgItemMessage(hwndDlg,IDC_LIST_CHEATS,LB_SETCURSEL,selcheat,0);
UpdateCheatsAdded();
UpdateColorTable();
break;
}