Skip to content

Commit c93c3e2

Browse files
committed
Bump version and make minor adjustments
1 parent 5d0de7c commit c93c3e2

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ INCLUDES := include include/audio include/ftp include/gif include/menus lib
3838
EXEFS_SRC := exefs_src
3939
ROMFS := romfs
4040

41-
VERSION_MAJOR := 1
42-
VERSION_MINOR := 2
41+
VERSION_MAJOR := 2
42+
VERSION_MINOR := 0
4343
VERSION_MICRO := 0
4444
GITVERSION := $(shell git log -1 --pretty='%h')
4545

source/menus/menu_gallery.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ static Result Gallery_GetImageList(void) {
2929
qsort(entries, entryCount, sizeof(FsDirectoryEntry), Utils_Alphasort);
3030

3131
for (u32 i = 0; i < entryCount; i++) {
32-
if ((!strncasecmp(FS_GetFileExt(entries[i].name), "png", 3)) || (!strncasecmp(FS_GetFileExt(entries[i].name), "jpg", 3)) ||
33-
(!strncasecmp(FS_GetFileExt(entries[i].name), "bmp", 3)) || (!strncasecmp(FS_GetFileExt(entries[i].name), "gif", 3)) ||
34-
(!strncasecmp(FS_GetFileExt(entries[i].name), "webp", 4))) {
32+
const char *ext = FS_GetFileExt(entries[i].name);
33+
34+
if ((!strncasecmp(ext, "png", 3)) || (!strncasecmp(ext, "jpg", 3)) || (!strncasecmp(ext, "bmp", 3))
35+
|| (!strncasecmp(ext, "gif", 3)) || (!strncasecmp(ext, "webp", 4))) {
3536
strcpy(album[count], cwd);
3637
strcpy(album[count] + strlen(album[count]), entries[i].name);
3738
count++;

source/menus/menu_music.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ static Result Menu_GetMusicList(void) {
3939
qsort(entries, entryCount, sizeof(FsDirectoryEntry), Utils_Alphasort);
4040

4141
for (u32 i = 0; i < entryCount; i++) {
42-
if ((!strncasecmp(FS_GetFileExt(entries[i].name), "flac", 4)) || (!strncasecmp(FS_GetFileExt(entries[i].name), "mp3", 3))
43-
|| (!strncasecmp(FS_GetFileExt(entries[i].name), "ogg", 3)) || (!strncasecmp(FS_GetFileExt(entries[i].name), "wav", 3))
44-
|| (!strncasecmp(FS_GetFileExt(entries[i].name), "xm", 2))) {
42+
const char *ext = FS_GetFileExt(entries[i].name);
43+
44+
if ((!strncasecmp(ext, "flac", 4)) || (!strncasecmp(ext, "it", 2)) || (!strncasecmp(ext, "mod", 3))
45+
|| (!strncasecmp(ext, "mp3", 3)) || (!strncasecmp(ext, "ogg", 3)) || (!strncasecmp(ext, "opus", 4))
46+
|| (!strncasecmp(ext, "s3m", 3)) || (!strncasecmp(ext, "wav", 3)) || (!strncasecmp(ext, "xm", 2))) {
4547
strcpy(playlist[count], cwd);
4648
strcpy(playlist[count] + strlen(playlist[count]), entries[i].name);
4749
count++;

source/menus/menu_settings.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static void Menu_ControlAboutDialog(u64 input, TouchInfo touchInfo) {
132132
}
133133

134134
static void Menu_DisplayAboutDialog(void) {
135-
u32 text1_width = 0, text2_width = 0, text3_width = 0, text4_width = 0, text5_width = 0;
135+
u32 text1_width = 0, text2_width = 0, text3_width = 0, text4_width = 0;
136136
SDL_GetTextDimensions(20, "NX Shell vX.X.X", &text1_width, NULL);
137137
SDL_GetTextDimensions(20, "Author: Joel16", &text2_width, NULL);
138138
SDL_GetTextDimensions(20, "Graphics: Preetisketch and CyanogenMod/LineageOS contributors", &text3_width, NULL);

0 commit comments

Comments
 (0)