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

Function GetUIGGInfo

src/drivers/win/cheat.cpp:1417–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1415}
1416
1417void GetUIGGInfo(HWND hwndDlg, uint32* a, uint8* v, int* c)
1418{
1419 char buf[16];
1420 GetDlgItemText(hwndDlg, IDC_GAME_GENIE_ADDR, buf, 5);
1421 *a = StrToU16(buf);
1422 GetDlgItemText(hwndDlg, IDC_GAME_GENIE_VAL, buf, 3);
1423 *v = StrToU8(buf);
1424 GetDlgItemText(hwndDlg, IDC_GAME_GENIE_COMP, buf, 3);
1425 *c = (buf[0] == 0 ? -1 : StrToU8(buf));
1426}
1427
1428void DisableAllCheats()
1429{

Callers 2

GGConvCallBFunction · 0.85
ListGGAddressesFunction · 0.85

Calls 3

GetDlgItemTextFunction · 0.85
StrToU16Function · 0.85
StrToU8Function · 0.85

Tested by

no test coverage detected