forked from Mirror/GodMode9
Fix loading key from slot0x05KeyY.bin
This commit is contained in:
parent
482f188aac
commit
897d254a4f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user