Skip to content

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 d7da825 to 99188a1 Compare September 2, 2024 14:22
@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
@jetrotal jetrotal deleted the Maniacs-Call-System-Functions branch November 28, 2024 14:16
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