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

Maniacs Patch - Call System Functions #3250

Merged

Conversation

jetrotal
Copy link
Contributor

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).

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
@jetrotal jetrotal force-pushed the Maniacs-Call-System-Functions branch 4 times, most recently from 51e1747 to 0c7528a Compare July 25, 2024 10:59
Copy link
Member

@Ghabry Ghabry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.


// 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.
Copy link
Member

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?

Copy link
Contributor Author

@jetrotal jetrotal Aug 1, 2024

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.

return true;
case 7: // Reset game
return CommandReturnToTitleScreen(com);
case 8: // EASYRPG Inventory menu
Copy link
Member

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)

@Ghabry Ghabry added this to the 0.8.1 milestone Aug 1, 2024
@Ghabry
Copy link
Member

Ghabry commented Aug 1, 2024

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.

@Ghabry Ghabry force-pushed the Maniacs-Call-System-Functions branch from 99188a1 to a2080c7 Compare September 2, 2024 18:51
@Ghabry Ghabry merged commit bc2fed8 into EasyRPG:master Sep 2, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants