refacto: same constant declaration become unique

It's clearer to declare 'decrypted' outside the conditional compilation.
Only the two other declarations are different.
This commit is contained in:
Stéphane Blondon
2025-04-16 13:35:33 +02:00
parent 632b1c758c
commit a1e1b0b73f

View File

@@ -26,14 +26,13 @@ PSP_MODULE_INFO("SaveDecrypt", 0, 1, 1);
#define printf pspDebugScreenPrintf
const char *decrypted = "ms0:/PLAIN.BIN";
#if 0
/* Old format save with no key, supported by 1.0+ firmware */
const char *decrypted = "ms0:/PLAIN.BIN";
const char *encrypted = "ms0:/PSP/SAVEDATA/DATA111110000/DATA.BIN";
const unsigned char *gamekey = NULL;
#else
/* New format save with a key, supported by 2.0+ firmware */
const char *decrypted = "ms0:/PLAIN.BIN";
const char *encrypted = "ms0:/PSP/SAVEDATA/DATA222220000/DATA.BIN";
const unsigned char gamekey[] = {
0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF,