From a847d6341de61ff560adefc4d28ed31220039f91 Mon Sep 17 00:00:00 2001 From: Mode8fx Date: Tue, 15 Oct 2024 19:00:20 -0400 Subject: [PATCH] L/R no longer saves on Wii U SDL2 counts the "Close Software" button as pressing L for... some reason. This would cause the song index to decrement then save when closing the game, so I disabled saving here to "fix" it --- SuDokuLVS2019/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SuDokuLVS2019/src/main.cpp b/SuDokuLVS2019/src/main.cpp index b18aa5f..1d0878c 100644 --- a/SuDokuLVS2019/src/main.cpp +++ b/SuDokuLVS2019/src/main.cpp @@ -553,17 +553,21 @@ int main(int argv, char** args) { if (--soundSettings.musicIndex < 1) soundSettings.musicIndex = 8; playMusicAtIndex(soundSettings.musicIndex); +#if !defined(WII_U) // SDL2 counts the "Close Software" button as pressing L for... some reason if (programState != 20) { // If you save in the Video settings menu, possible undesired video settings would also be saved (this could be fixed, but it's just not worth the trouble for such a small issue) saveCurrentSettings(); } +#endif } if (keyPressed(INPUT_NEXT_TRACK) && wentPastTitleScreen) { if (++soundSettings.musicIndex > 8) soundSettings.musicIndex = 1; playMusicAtIndex(soundSettings.musicIndex); +#if !defined(WII_U) // SDL2 counts the "Close Software" button as pressing L for... some reason if (programState != 20) { saveCurrentSettings(); } +#endif } if (windowSizeChanged) {