From ee1a3e08ae2f7b2a94170ef3735b0e150ccdffd4 Mon Sep 17 00:00:00 2001 From: shchmue Date: Tue, 15 Oct 2019 11:11:47 -0600 Subject: [PATCH] Fix bad f_mkdir check skipping file save --- Makefile | 2 +- source/keys/keys.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index efe3066..d5245cc 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ include $(DEVKITARM)/base_rules IPL_LOAD_ADDR := 0x40003000 LPVERSION_MAJOR := 1 LPVERSION_MINOR := 6 -LPVERSION_BUGFX := 2 +LPVERSION_BUGFX := 3 ################################################################################ diff --git a/source/keys/keys.c b/source/keys/keys.c index 4fb7926..4a2c8a3 100644 --- a/source/keys/keys.c +++ b/source/keys/keys.c @@ -1039,7 +1039,7 @@ key_output: ; gfx_printf("%kLockpick totally done in %d us\n\n", colors[(color_idx++) % 6], end_time - begin_time); gfx_printf("%kFound through master_key_%02x.\n\n", colors[(color_idx++) % 6], MAX_KEY - 1); - if (f_mkdir("sd:/switch")) { + if (f_mkdir("sd:/switch") != FR_EXIST) { EPRINTF("Unable to create /switch folder on SD.\nNo keyfiles written."); goto free_buffers; }