Alien Storm (Genesis) Credits Select Cheat Tool Version 1.1
A command-line tool that computes some stuff regarding the Genesis Alien Storm game's credits select cheat.
|
Functions for computing all the solutions of a certain minimum length, for a certain initial internal state. More...
Functions | |
unsigned long long | _FindSolutions (bool OnlySafeSolutions, unsigned short InternalState, unsigned short MaximumRecursiveDepth, unsigned short CurrentRecursiveDepth=0) |
unsigned long long | _ComputeSolutions (bool OnlySafeSolutions) |
Variables | |
unsigned short * | SolutionBuffer |
fstream | SolutionsFileCSV |
Functions for computing all the solutions of a certain minimum length, for a certain initial internal state.
unsigned long long _ComputeSolutions | ( | bool | OnlySafeSolutions | ) |
This function computes all the solution of a certain minimum length.
Solutions found are also saved inside a CSV file, I/O errors are silently ignored, for now.
[in] | OnlySafeSolutions | If true, solutions with left/right button presses are discarded, if false nothing happens. main() invokes this function twice, once with this parameter as false, once as true. |
unsigned long long _FindSolutions | ( | bool | OnlySafeSolutions, |
unsigned short | InternalState, | ||
unsigned short | MaximumRecursiveDepth, | ||
unsigned short | CurrentRecursiveDepth = 0 |
||
) |
The main logic behing computing all the solutions of a certain minimum length.
Search is pruned using the result of ComputeMinimumSolutionLengths.cpp. Solutions found are also saved inside a CSV file, I/O errors are silently ignored, for now.
[in] | OnlySafeSolutions | If true, solutions with left/right button presses are discarded, if false nothing happens. |
[in] | InternalState | The starting internal state. |
[in] | MaximumRecursiveDepth | The maximum recursive depth allowed to be reached. It's equal to the minimum solution length considered by _ComputeSolutions(). |
[in] | CurrentRecursiveDepth | The current recursive depth. It's automatically set to zero in the function's declaration. |