From 8c2aa76fd08e61863a3dae27b00c103c5491c4b7 Mon Sep 17 00:00:00 2001 From: shchmue Date: Mon, 21 Oct 2019 11:06:39 -0600 Subject: [PATCH] v1.6.4: Skip f_mkdir validation altogether --- Makefile | 2 +- source/keys/keys.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index d5245cc..7d31ed2 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 := 3 +LPVERSION_BUGFX := 4 ################################################################################ diff --git a/source/keys/keys.c b/source/keys/keys.c index 7caca15..acc81fc 100644 --- a/source/keys/keys.c +++ b/source/keys/keys.c @@ -1039,12 +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); - FRESULT dir_rc = FR_OK; - dir_rc = f_mkdir("sd:/switch"); - if (dir_rc != FR_EXIST && dir_rc != FR_OK) { - EPRINTF("Unable to create /switch folder on SD.\nNo keyfiles written."); - goto free_buffers; - } + f_mkdir("sd:/switch"); char keyfile_path[30] = "sd:/switch/"; if (!(fuse_read_odm(4) & 3)) sprintf(&keyfile_path[11], "prod.keys");