MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / TestCheat

Function TestCheat

src/SB/Game/zGameExtras.cpp:333–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333S32 TestCheat(U32 cheat[])
334{
335 S32 i = 15;
336
337 if (!cheat[i])
338 {
339 return 0;
340 }
341
342 for (i; i >= 0; i--)
343 {
344 if (cheat[i] != sCheatPressed[i])
345 {
346 return 0;
347 }
348 }
349
350 return 1;
351}
352
353void AddToCheatPressed(U32 button)
354{

Callers 1

zGameCheatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected