Fix loading key from slot0x05KeyY.bin

This commit is contained in:
d0k3 2016-04-13 10:59:10 +02:00
parent 482f188aac
commit 897d254a4f

View File

@ -81,7 +81,7 @@ bool LoadKeyFromFile(const char* folder, u8* keydata, u32 keyslot, char type, ch
// try legacy slot0x??Key?.bin file // try legacy slot0x??Key?.bin file
if (!found) { 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" : ""); (id) ? id : (type == 'X') ? "X" : (type == 'Y') ? "Y" : "");
if (FileGetData(path, key, 16, 0) == 16) if (FileGetData(path, key, 16, 0) == 16)
found = true; found = true;