mirror of
https://github.com/shchmue/Lockpick_RCM.git
synced 2024-12-22 20:15:29 +00:00
v1.6.4: Skip f_mkdir validation altogether
This commit is contained in:
parent
340a256518
commit
8c2aa76fd0
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ include $(DEVKITARM)/base_rules
|
||||||
IPL_LOAD_ADDR := 0x40003000
|
IPL_LOAD_ADDR := 0x40003000
|
||||||
LPVERSION_MAJOR := 1
|
LPVERSION_MAJOR := 1
|
||||||
LPVERSION_MINOR := 6
|
LPVERSION_MINOR := 6
|
||||||
LPVERSION_BUGFX := 3
|
LPVERSION_BUGFX := 4
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
|
@ -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("%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);
|
gfx_printf("%kFound through master_key_%02x.\n\n", colors[(color_idx++) % 6], MAX_KEY - 1);
|
||||||
|
|
||||||
FRESULT dir_rc = FR_OK;
|
f_mkdir("sd:/switch");
|
||||||
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;
|
|
||||||
}
|
|
||||||
char keyfile_path[30] = "sd:/switch/";
|
char keyfile_path[30] = "sd:/switch/";
|
||||||
if (!(fuse_read_odm(4) & 3))
|
if (!(fuse_read_odm(4) & 3))
|
||||||
sprintf(&keyfile_path[11], "prod.keys");
|
sprintf(&keyfile_path[11], "prod.keys");
|
||||||
|
|
Loading…
Reference in a new issue