From 3c9288c2538428058a62eb5543bb0463fbf18ae0 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 15 Dec 2008 18:53:48 +0000 Subject: [PATCH] Win32 - better handling of UpdateFrozenList() --- src/cheat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cheat.cpp b/src/cheat.cpp index 33bcc148..e13903b6 100644 --- a/src/cheat.cpp +++ b/src/cheat.cpp @@ -143,6 +143,8 @@ void RebuildSubCheats(void) c=c->next; } FrozenAddressCount = numsubcheats; //Update the frozen address list + UpdateFrozenList(); + FCEUI_DispMessage("Active Cheats: %d", FrozenAddresses.size()/*FrozenAddressCount*/); //Debug } void FCEU_PowerCheats() @@ -375,7 +377,7 @@ int FCEUI_AddCheat(const char *name, uint32 addr, uint8 val, int compare, int ty } savecheats=1; RebuildSubCheats(); - UpdateFrozenList(); + return(1); } @@ -421,7 +423,6 @@ int FCEUI_DelCheat(uint32 which) savecheats=1; RebuildSubCheats(); - UpdateFrozenList(); return(1); }