diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-05-24 18:54:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-24 18:54:46 -0400 |
| commit | 7cd75e8f7b01a45ca8c72facfd5b4a3c1906c0e1 (patch) | |
| tree | ece493d144cfcb3af860c2af8fa0480491f69706 /src/d/d_menu_option.cpp | |
| parent | 4a29f64e6bf5a06a541161638913f51c51d8a633 (diff) | |
Demo matches (#767)
Diffstat (limited to 'src/d/d_menu_option.cpp')
| -rw-r--r-- | src/d/d_menu_option.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/d/d_menu_option.cpp b/src/d/d_menu_option.cpp index fa43b0a6..c1747fcc 100644 --- a/src/d/d_menu_option.cpp +++ b/src/d/d_menu_option.cpp @@ -718,18 +718,23 @@ void dMenu_Option_c::initialize() { mE3C = dComIfGs_getOptAttentionType(); mE3D = dComIfGs_getOptRuby(); mE3E = dComIfGs_getOptSound(); - +#if VERSION == VERSION_DEMO + mE3F = dComIfGs_getOptVibration(); +#else if ((JUTGamePad::sRumbleSupported & 0x80000000)) { mE3F = dComIfGp_getNowVibration(); } else { mE3F = 0; } +#endif mE41 = 0; mDoAud_setOutputMode(soundMode[mE3E]); +#if VERSION > VERSION_DEMO setSoundMode(soundMode[mE3E]); +#endif } /* 801D5224-801D53F0 .text _create__14dMenu_Option_cFv */ @@ -766,6 +771,7 @@ void dMenu_Option_c::_delete() { void dMenu_Option_c::_move() { u8 check_trigger = stick->checkTrigger(); +#if VERSION > VERSION_DEMO if (mE3F) { if ((JUTGamePad::sRumbleSupported & 0x80000000U) == 0) { mE3F = 0; @@ -782,6 +788,7 @@ void dMenu_Option_c::_move() { cursorScale(); } } +#endif if (CPad_CHECK_TRIG_A(0) && !CPad_CHECK_TRIG_START(0) && @@ -800,11 +807,14 @@ void dMenu_Option_c::_move() { dComIfGs_setOptAttentionType(mE3C); dComIfGs_setOptRuby(mE3D); +#if VERSION == VERSION_DEMO + dComIfGs_setOptVibration(mE3F); +#else if (JUTGamePad::sRumbleSupported & 0x80000000) { - dComIfGs_setOptVibration(mE3F); + dComIfGs_setOptVibration(mE3F); } - dComIfGp_setNowVibration(mE3F); +#endif dComIfGs_setOptSound(mE3E); mDoAud_seStart(JA_SE_ITM_MENU_OPT_OUT, NULL, 0); @@ -855,6 +865,7 @@ void dMenu_Option_c::_move() { yazAnime(); +#if VERSION > VERSION_DEMO if (mB30[1].mUserArea != 2 || JUTGamePad::sRumbleSupported & 0x80000000) { m858[0].pane->show(); @@ -864,6 +875,7 @@ void dMenu_Option_c::_move() { m858[0].pane->hide(); m858[1].pane->hide(); } +#endif ccAnime(); |
