mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 09:08:30 +00:00
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:
@@ -26,14 +26,13 @@ PSP_MODULE_INFO("SaveDecrypt", 0, 1, 1);
|
|||||||
|
|
||||||
#define printf pspDebugScreenPrintf
|
#define printf pspDebugScreenPrintf
|
||||||
|
|
||||||
|
const char *decrypted = "ms0:/PLAIN.BIN";
|
||||||
#if 0
|
#if 0
|
||||||
/* Old format save with no key, supported by 1.0+ firmware */
|
/* 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 char *encrypted = "ms0:/PSP/SAVEDATA/DATA111110000/DATA.BIN";
|
||||||
const unsigned char *gamekey = NULL;
|
const unsigned char *gamekey = NULL;
|
||||||
#else
|
#else
|
||||||
/* New format save with a key, supported by 2.0+ firmware */
|
/* 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 char *encrypted = "ms0:/PSP/SAVEDATA/DATA222220000/DATA.BIN";
|
||||||
const unsigned char gamekey[] = {
|
const unsigned char gamekey[] = {
|
||||||
0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF,
|
0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF,
|
||||||
|
Reference in New Issue
Block a user