Skip to content

Commit

Permalink
FINAL_MENU_SPEC helper define added
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Aug 4, 2024
1 parent 9e2c3a6 commit 64604f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion props/prop_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ class PropBase : CommandParser, Looper, protected SaberBase, public ModeInterfac
#endif

void EnterMenu() {
pushMode<MKSPEC<FINAL_MENU_SPEC_TEMPLATE>::MENU_SPEC_MENU>();
pushMode<FINAL_MENU_SPEC::MENU_SPEC_MENU>();
}
#endif

Expand Down
4 changes: 4 additions & 0 deletions sound/sound_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,5 +606,9 @@ struct UpgradeSoundLibraryIfNeeded {
# define FINAL_MENU_SPEC_TEMPLATE MAKE_SOUND_LIBRARY<SL_TEMPLATE_NAME>::SL_SPEC
#endif

// These two defines are the ones props should use.
#undef FINAL_MENU_SPEC
#define FINAL_MENU_SPEC MKSPEC<FINAL_MENUSPEC_TEMPLATE>

#undef sound_library_
#define sound_library_ (*getPtr<MKSPEC<FINAL_MENU_SPEC_TEMPLATE>::SoundLibrary>())

0 comments on commit 64604f3

Please sign in to comment.