Last active
October 14, 2020 14:57
-
-
Save progre/31760ad34774e7b25d2805ca6c7ac230 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state("th105", "") | |
{ | |
// int decideKey : 0x056E70, 0x64, 0x40; // unused | |
// int skipKey : 0x056E70, 0x64, 0x48; // unused | |
byte resultWindowState : 0x2e6254, 0x3f9; | |
byte stage : 0x2e6254, 0x594; | |
byte maxStage : 0x2e6254, 0x595; | |
int transition : 0x2e62e8; // 0x006e62e8 - 0x400000 | |
int screen : 0x2ece78; | |
// int zeroBeginningStage : 0x2e64b0; // unused | |
} | |
start | |
{ | |
return old.transition == 0 && current.transition == 3; | |
} | |
split | |
{ | |
if (current.stage <= 1) | |
{ | |
return false; | |
} | |
if (current.stage == old.stage + 1) | |
{ | |
return true; | |
} | |
// The timer stop is the last input to close result. | |
if ( | |
current.stage == current.maxStage && | |
old.resultWindowState == 1 && | |
current.resultWindowState == 3 | |
) { | |
return true; | |
} | |
return false; | |
} | |
reset | |
{ | |
return old.screen == 5 && current.screen == 16; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment