diff --git a/desmume/src/windows/cheatsWin.cpp b/desmume/src/windows/cheatsWin.cpp index 00af64749..cc8c143ac 100644 --- a/desmume/src/windows/cheatsWin.cpp +++ b/desmume/src/windows/cheatsWin.cpp @@ -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 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: { + if (!msgbox->confirm("Are you sure you want to delete?")) return TRUE; while(true) { 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; SendMessage(exportListView, LVM_INSERTITEM, 0, (LPARAM)&lvi); } - if (gameInfo.crc != cheatsExport->CRC) - { - //MessageBox(dialog, "WARNING!\n Checksums not matching.",EMU_DESMUME_NAME_AND_VERSION(), MB_OK);// | MB_ICON_ERROR); - } + if (gameInfo.crc && (gameInfo.crc != cheatsExport->CRC)) + msgbox->warn("Checksums not matching"); + SendMessage(exportListView, WM_SETREDRAW, (WPARAM)TRUE,0); ListView_SetItemState(exportListView,0, LVIS_SELECTED|LVIS_FOCUSED, LVIS_SELECTED|LVIS_FOCUSED); SetFocus(exportListView); diff --git a/desmume/src/windows/resources.rc b/desmume/src/windows/resources.rc index 89360fd47..6cc4589fa 100644 --- a/desmume/src/windows/resources.rc +++ b/desmume/src/windows/resources.rc @@ -193,7 +193,7 @@ STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIB CAPTION "Cheats list" FONT 8, "MS Shell Dlg", 400, 0, 0x1 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 "Action Replay",IDC_BADD_AR,66,240,67,14 PUSHBUTTON "Codebreaker",IDC_BADD_CB,139,240,67,14,WS_DISABLED