Skip to content

Commit

Permalink
Fix loading key from slot0x05KeyY.bin
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed Apr 13, 2016
1 parent 482f188 commit 897d254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/nand/nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool LoadKeyFromFile(const char* folder, u8* keydata, u32 keyslot, char type, ch

// try legacy slot0x??Key?.bin file
if (!found) {
snprintf(path, 256, "%s/slot0x%02XKey%.10s", folder, (unsigned int) keyslot,
snprintf(path, 256, "%s/slot0x%02XKey%.10s.bin", folder, (unsigned int) keyslot,
(id) ? id : (type == 'X') ? "X" : (type == 'Y') ? "Y" : "");
if (FileGetData(path, key, 16, 0) == 16)
found = true;
Expand Down

0 comments on commit 897d254

Please sign in to comment.