From 353a048030b7d488a73eca6c4849a28b0078c97d Mon Sep 17 00:00:00 2001 From: PabloMK7 Date: Sun, 19 Nov 2023 11:46:26 +0100 Subject: [PATCH] Bump version number --- arm9/source/config.h | 2 +- sysmodules/rosalina/source/menus/sysconfig.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arm9/source/config.h b/arm9/source/config.h index 3ac0e983c..3d8cfc80c 100644 --- a/arm9/source/config.h +++ b/arm9/source/config.h @@ -36,7 +36,7 @@ #define CONFIG_FILE "config.ini" #define CONFIG_VERSIONMAJOR 3 -#define CONFIG_VERSIONMINOR 10 +#define CONFIG_VERSIONMINOR 11 #define BOOTCFG_NAND BOOTCONFIG(0, 1) #define BOOTCFG_EMUINDEX BOOTCONFIG(1, 3) diff --git a/sysmodules/rosalina/source/menus/sysconfig.c b/sysmodules/rosalina/source/menus/sysconfig.c index 20c309198..e0f9ba16d 100644 --- a/sysmodules/rosalina/source/menus/sysconfig.c +++ b/sysmodules/rosalina/source/menus/sysconfig.c @@ -400,11 +400,11 @@ static Result SysConfigMenu_ApplyVolumeOverride(void) if (currVolumeSliderOverride >= 0) { s8 calculated = -128 + (((float)currVolumeSliderOverride/100.f) * 108); if (calculated > -20) - return -1; // Just in case + res = -1; // Just in case s8 volumes[2] = {calculated, calculated}; // Volume in 0.5 dB steps. -128 (muted) to 48. Do not go above -20 (100%). if (R_SUCCEEDED(res)) res = CDCCHK_WriteRegisters2(0, 65, volumes, 2); // CDC_REG_DAC_L_VOLUME_CTRL, CDC_REG_DAC_R_VOLUME_CTRL } - + cdcChkExit(); return res; } @@ -478,7 +478,7 @@ void SysConfigMenu_AdjustVolume(void) tempVolumeOverride+=10; else if (pressed & KEY_DLEFT) tempVolumeOverride-=10; - + if (tempVolumeOverride < 0) tempVolumeOverride = 0; if (tempVolumeOverride > 100) @@ -486,4 +486,4 @@ void SysConfigMenu_AdjustVolume(void) } } while(!menuShouldExit); -} \ No newline at end of file +}