No dropped inputs (#325)

This commit is contained in:
Patrick12115
2024-05-22 09:05:04 -05:00
committed by Garrett Cox
parent 1cee3b3287
commit 84dd4713a5
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -403,12 +403,15 @@ void DrawEnhancementsMenu() {
ImGui::EndMenu();
}
if (UIWidgets::BeginMenu("Songs")) {
if (UIWidgets::BeginMenu("Songs/Playback")) {
UIWidgets::CVarCheckbox("Enable Sun's Song", "gEnhancements.Songs.EnableSunsSong", {
.tooltip = "Enables the partially implemented Sun's Song. RIGHT-DOWN-UP-RIGHT-DOWN-UP to play it. "
"This song will make time move very fast until either Link moves to a different scene, "
"or when the time switches to a new time period."
});
UIWidgets::CVarCheckbox("Prevent Dropped Ocarina Inputs", "gEnhancements.Playback.NoDropOcarinaInput", {
.tooltip = "Prevent dropping inputs when playing the ocarina quickly"
});
ImGui::EndMenu();
}
+3 -1
View File
@@ -2588,7 +2588,9 @@ void AudioOcarina_PlayControllerInput(u8 isOcarinaSfxSuppressedWhenCancelled) {
// Prevents two different ocarina notes from being played on two consecutive frames
if ((sOcarinaFlags != 0) && (sOcarinaDropInputTimer != 0)) {
sOcarinaDropInputTimer--;
return;
if (!CVarGetInteger("gEnhancements.Playback.NoDropOcarinaInput", 0)) {
return;
}
}
// Ensures the button pressed to start the ocarina does not also play an ocarina note