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

Function SetAutoFirePattern

src/fceu.cpp:661–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659int AutoFirePatternLength = 2;
660
661void SetAutoFirePattern(int onframes, int offframes)
662{
663 //int i;
664 //for (i = 0; i < onframes && i < 8; i++) {
665 // AutoFirePattern[i] = 1;
666 //}
667 //for (; i < 8; i++) {
668 // AutoFirePattern[i] = 0;
669 //}
670 //if (onframes + offframes < 2) {
671 // AutoFirePatternLength = 2;
672 //} else if (onframes + offframes > 8) {
673 // AutoFirePatternLength = 8;
674 //} else {
675 // AutoFirePatternLength = onframes + offframes;
676 //}
677 AutoFirePatternLength = onframes + offframes;
678 AFon = onframes; AFoff = offframes;
679}
680
681void GetAutoFirePattern( int *onframes, int *offframes)
682{

Callers 4

AppWndProcFunction · 0.85
mainFunction · 0.85
fceuWrapperInitFunction · 0.85
activateCBMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected