-
Notifications
You must be signed in to change notification settings - Fork 194
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
Maniacs Patch - Call System Functions #3250
Maniacs Patch - Call System Functions #3250
Conversation
In Maniacs, CommandOpenSaveMenu is renamed to "Call System Function". I implemented what is closer to our code. Also expanded the code to cover our custom submenus (Cases 8 to 12). Update game_interpreter_map.cpp
51e1747
to
0c7528a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
src/game_interpreter_map.cpp
Outdated
|
||
// Parse common parameters | ||
const int fullscreen_mode = com.parameters[1]; // Broken in Maniac. | ||
const int pause_while_debugging = com.parameters[1]; // unused in our ingame debug screen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do both use the same index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maniacs reuses parameter[1] in different cases, I just gave names to the parameters to be easier to read and understand.
src/game_interpreter_map.cpp
Outdated
return true; | ||
case 7: // Reset game | ||
return CommandReturnToTitleScreen(com); | ||
case 8: // EASYRPG Inventory menu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intentional that an enabled direct menu patch can redirect these menu calls? (the dmpatch redirection is in RequestMainMenuScene
)
I will move the EasyRPG extension stuff to a higher ID like 200 onwards to prevent conflicts with upcoming MP version. Otherwise this is fine imo. |
…ent conflicts Minor enhancements
d7da825
to
99188a1
Compare
99188a1
to
a2080c7
Compare
In Maniacs, CommandOpenSaveMenu is renamed to "Call System Function". I implemented what is closer to our code.
Also expanded the code to cover our custom submenus (Cases 8 to 12).