From 778e1a8331f62b900c6a6dab6bc02a9a5d76e26e Mon Sep 17 00:00:00 2001 From: Alex Taber Date: Thu, 7 Sep 2017 13:35:56 -0400 Subject: [PATCH] maybe fix splashes --- source/draw.c | 2 +- source/splashes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/draw.c b/source/draw.c index 00eb912..d3766a7 100644 --- a/source/draw.c +++ b/source/draw.c @@ -73,9 +73,9 @@ void draw_themext_error(void) void draw_qr(void) { + take_picture(); pp2d_begin_draw(GFX_TOP); pp2d_free_texture(TEXTURE_QR); - take_picture(); u32 *rgba8_buf = malloc(240 * 400 * sizeof(u32)); for (int i = 0; i < 240 * 400; i++) { diff --git a/source/splashes.c b/source/splashes.c index ff19799..864eb4b 100644 --- a/source/splashes.c +++ b/source/splashes.c @@ -107,7 +107,7 @@ Result get_splashes(Splash_s** splashes_list, int *splash_count) if (R_FAILED(res) || entries_read == 0) break; - if (!(entry.attributes & FS_ATTRIBUTE_DIRECTORY) || strcmp(entry.shortExt, "ZIP")) + if (!(entry.attributes & FS_ATTRIBUTE_DIRECTORY) && strcmp(entry.shortExt, "ZIP")) continue; *splash_count += entries_read;