Skip to content

Commit

Permalink
Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloMK7 authored and TuxSH committed Feb 7, 2024
1 parent bef642c commit 36df6d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arm9/source/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions sysmodules/rosalina/source/menus/sysconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void SysConfigMenu_ToggleCardIfPower(void)

static Result SysConfigMenu_ApplyVolumeOverride(void)
{
// Thanks profi200!
// Credit: profi200
u8 tmp;
Result res = cdcChkInit();

Expand All @@ -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;
}
Expand Down Expand Up @@ -478,12 +478,12 @@ void SysConfigMenu_AdjustVolume(void)
tempVolumeOverride+=10;
else if (pressed & KEY_DLEFT)
tempVolumeOverride-=10;

if (tempVolumeOverride < 0)
tempVolumeOverride = 0;
if (tempVolumeOverride > 100)
tempVolumeOverride = 100;
}

} while(!menuShouldExit);
}
}

0 comments on commit 36df6d6

Please sign in to comment.