Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lowercase debug command names upon registration #642

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

SnipUndercover
Copy link
Contributor

If a debug command has a name with an uppercase character, the command will show up in the list, but will be impossible to call, due to Monocle.Commands.EnterCommand() lowercasing the command name.

Attempting to run "resetTSwitch", but the command doesn't exist, despite showing up in the command list.


This patch lowercases the command name upon registration to prevent confusion in the future.

Registering a "testmod_TEST" command, with uppercase "TEST"
In-game command list, showing the "testmod_test" command, with lowercase "test"

Co-authored-by: Kalobi <46748261+Kalobi@users.noreply.github.com>
@DemoJameson DemoJameson merged commit 5388ac7 into EverestAPI:dev Jul 31, 2023
@SnipUndercover SnipUndercover deleted the lowercase-debug-commands branch January 8, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants