Skip to content

Commit

Permalink
dev menu? more like... uh... shit
Browse files Browse the repository at this point in the history
Added the ability to show the instructions in the help & options menu instead of the dev menu (when it's enabled) by holding x
  • Loading branch information
MegAmi24 committed Jan 17, 2024
1 parent 804ef45 commit 7d1cdcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions RSDKv4/NativeObjects/OptionsMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ void OptionsMenu_Main(void *objPtr)
self->buttons[self->selectedButton]->b = 0xFF;
self->state = OPTIONSMENU_STATE_ACTION;
#if !RETRO_USE_ORIGINAL_CODE
if (Engine.devMenu && self->selectedButton == OPTIONSMENU_BUTTON_INSTRUCTIONS)
self->unused1 = Engine.devMenu && self->selectedButton == OPTIONSMENU_BUTTON_INSTRUCTIONS && !keyDown.X;
if (self->unused1)
StopMusic(true);
#endif
}
Expand Down Expand Up @@ -157,7 +158,7 @@ void OptionsMenu_Main(void *objPtr)
self->menuControl->state = MENUCONTROL_STATE_NONE;
if (!self->buttons[self->selectedButton]->state) {
#if !RETRO_USE_ORIGINAL_CODE
if (!Engine.devMenu || self->selectedButton != OPTIONSMENU_BUTTON_INSTRUCTIONS) {
if (!self->unused1) {
#endif
self->state = OPTIONSMENU_STATE_ENTERSUBMENU;

Expand Down
2 changes: 1 addition & 1 deletion RSDKv4/NativeObjects/OptionsMenu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum OptionsMenuButtons {
struct NativeEntity_OptionsMenu : NativeEntityBase {
OptionsMenuStates state;
float timer;
int unused1;
int unused1; // Used for checking if the dev menu should be entered in the decomp
NativeEntity_MenuControl *menuControl;
NativeEntity_InstructionsScreen *instructionsScreen;
NativeEntity_SettingsScreen *settingsScreen;
Expand Down

0 comments on commit 7d1cdcb

Please sign in to comment.