Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcommon: Experimenting with a console command EventSequence handler
Presently the cheat console commands use a somewhat awkward mechanic where the arguments are converted to integers, packed into an array and then fed to the relevant cheat code handler. This not only makes them difficult to extend but also results in code duplication. G_AddEventSequenceCommand() works identically to G_AddEventSequence() except that the native function callback is replaced with a console command execution. With a little reqwiring work, most if not all the cheat code handlers could be replaced with templated console command event sequences. Presently unused.
- Loading branch information
1 parent
bb87d54
commit a2bb038
Showing
2 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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