parent
702879c848
commit
4c8e70acd9
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2009-2011 DeSmuME team
|
Copyright (C) 2009-2013 DeSmuME team
|
||||||
|
|
||||||
This file is free software: you can redistribute it and/or modify
|
This file is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -937,6 +937,7 @@ INT_PTR CALLBACK CheatsListBox_Proc(HWND dialog, UINT msg,WPARAM wparam,LPARAM l
|
||||||
|
|
||||||
case IDC_BREMOVE:
|
case IDC_BREMOVE:
|
||||||
{
|
{
|
||||||
|
if (!msgbox->confirm("Are you sure you want to delete?")) return TRUE;
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
int tmp_pos = ListView_GetNextItem(cheatListView, -1, LVNI_ALL | LVNI_SELECTED);
|
int tmp_pos = ListView_GetNextItem(cheatListView, -1, LVNI_ALL | LVNI_SELECTED);
|
||||||
|
@ -1410,10 +1411,9 @@ INT_PTR CALLBACK CheatsExportProc(HWND dialog, UINT msg,WPARAM wparam,LPARAM lpa
|
||||||
lvi.pszText= tmp[i].description;
|
lvi.pszText= tmp[i].description;
|
||||||
SendMessage(exportListView, LVM_INSERTITEM, 0, (LPARAM)&lvi);
|
SendMessage(exportListView, LVM_INSERTITEM, 0, (LPARAM)&lvi);
|
||||||
}
|
}
|
||||||
if (gameInfo.crc != cheatsExport->CRC)
|
if (gameInfo.crc && (gameInfo.crc != cheatsExport->CRC))
|
||||||
{
|
msgbox->warn("Checksums not matching");
|
||||||
//MessageBox(dialog, "WARNING!\n Checksums not matching.",EMU_DESMUME_NAME_AND_VERSION(), MB_OK);// | MB_ICON_ERROR);
|
|
||||||
}
|
|
||||||
SendMessage(exportListView, WM_SETREDRAW, (WPARAM)TRUE,0);
|
SendMessage(exportListView, WM_SETREDRAW, (WPARAM)TRUE,0);
|
||||||
ListView_SetItemState(exportListView,0, LVIS_SELECTED|LVIS_FOCUSED, LVIS_SELECTED|LVIS_FOCUSED);
|
ListView_SetItemState(exportListView,0, LVIS_SELECTED|LVIS_FOCUSED, LVIS_SELECTED|LVIS_FOCUSED);
|
||||||
SetFocus(exportListView);
|
SetFocus(exportListView);
|
||||||
|
|
|
@ -193,7 +193,7 @@ STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIB
|
||||||
CAPTION "Cheats list"
|
CAPTION "Cheats list"
|
||||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||||
BEGIN
|
BEGIN
|
||||||
CONTROL "",IDC_LIST1,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,7,488,218
|
CONTROL "",IDC_LIST1,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,7,488,218
|
||||||
PUSHBUTTON "internal",IDC_BADD,10,240,50,14
|
PUSHBUTTON "internal",IDC_BADD,10,240,50,14
|
||||||
PUSHBUTTON "Action Replay",IDC_BADD_AR,66,240,67,14
|
PUSHBUTTON "Action Replay",IDC_BADD_AR,66,240,67,14
|
||||||
PUSHBUTTON "Codebreaker",IDC_BADD_CB,139,240,67,14,WS_DISABLED
|
PUSHBUTTON "Codebreaker",IDC_BADD_CB,139,240,67,14,WS_DISABLED
|
||||||
|
|
Loading…
Reference in New Issue