maybe fix splashes

This commit is contained in:
2017-09-07 13:35:56 -04:00
parent 0871f4f30b
commit 778e1a8331
2 changed files with 2 additions and 2 deletions

View File

@@ -73,9 +73,9 @@ void draw_themext_error(void)
void draw_qr(void) void draw_qr(void)
{ {
take_picture();
pp2d_begin_draw(GFX_TOP); pp2d_begin_draw(GFX_TOP);
pp2d_free_texture(TEXTURE_QR); pp2d_free_texture(TEXTURE_QR);
take_picture();
u32 *rgba8_buf = malloc(240 * 400 * sizeof(u32)); u32 *rgba8_buf = malloc(240 * 400 * sizeof(u32));
for (int i = 0; i < 240 * 400; i++) for (int i = 0; i < 240 * 400; i++)
{ {

View File

@@ -107,7 +107,7 @@ Result get_splashes(Splash_s** splashes_list, int *splash_count)
if (R_FAILED(res) || entries_read == 0) if (R_FAILED(res) || entries_read == 0)
break; break;
if (!(entry.attributes & FS_ATTRIBUTE_DIRECTORY) || strcmp(entry.shortExt, "ZIP")) if (!(entry.attributes & FS_ATTRIBUTE_DIRECTORY) && strcmp(entry.shortExt, "ZIP"))
continue; continue;
*splash_count += entries_read; *splash_count += entries_read;