Update to address review comments.

Fixed nav menuing, and removed recomp APIs.
This commit is contained in:
Parker B 2024-05-25 21:43:11 -07:00
parent 4b9eb20748
commit 1fe0b740ad
3 changed files with 2 additions and 7 deletions

View file

@ -18,7 +18,7 @@
type="range"
min="0"
max="100"
style="flex: 1; margin: 0dp; nav-up: #tab_sound; nav-down: #lhb_on;"
style="flex: 1; margin: 0dp; nav-up: #tab_sound; nav-down: #bgm_volume_input;"
data-value="main_volume"
/>
</div>
@ -35,7 +35,7 @@
type="range"
min="0"
max="100"
style="flex: 1; margin: 0dp; nav-up: #tab_sound; nav-down: #lhb_on;"
style="flex: 1; margin: 0dp; nav-up: #main_volume_input; nav-down: #lhb_on;"
data-value="bgm_volume"
/>
</div>

View file

@ -3,7 +3,6 @@
#include "patch_helpers.h"
DECLARE_FUNC(float, recomp_get_main_volume);
DECLARE_FUNC(float, recomp_get_bgm_volume);
DECLARE_FUNC(u32, recomp_get_low_health_beeps_enabled);

View file

@ -78,10 +78,6 @@ extern "C" void recomp_get_targeting_mode(uint8_t* rdram, recomp_context* ctx) {
_return(ctx, static_cast<int>(recomp::get_targeting_mode()));
}
extern "C" void recomp_get_main_volume(uint8_t* rdram, recomp_context* ctx) {
_return(ctx, recomp::get_main_volume() / 100.0f);
}
extern "C" void recomp_get_bgm_volume(uint8_t* rdram, recomp_context* ctx) {
_return(ctx, recomp::get_bgm_volume() / 100.0f);
}