MCPcopy Create free account
hub / github.com/TASEmulators/fceux / DisableAllCheats

Function DisableAllCheats

src/drivers/win/cheat.cpp:1428–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428void DisableAllCheats()
1429{
1430 if(FCEU_DisableAllCheats() && hCheat){
1431 LVITEM lvi;
1432 lvi.mask = LVIF_STATE;
1433 lvi.stateMask = LVIS_STATEIMAGEMASK;
1434 lvi.state = INDEXTOSTATEIMAGEMASK(1);
1435 for (int current = SendDlgItemMessage(hCheat, IDC_LIST_CHEATS, LB_GETCOUNT, 0, 0) - 1; current >= 0; --current)
1436 SendDlgItemMessage(hCheat, IDC_LIST_CHEATS, LVM_GETITEMSTATE, current, (LPARAM)&lvi);
1437 UpdateCheatListGroupBoxUI();
1438 }
1439}
1440
1441void UpdateCheatRelatedWindow()
1442{

Callers 2

ReplayDialogProcFunction · 0.85
RecordDialogProcFunction · 0.85

Calls 2

FCEU_DisableAllCheatsFunction · 0.85

Tested by

no test coverage detected