This commit is contained in:
Naim2000 2024-04-22 14:43:18 -05:00
parent a4b6f965a8
commit 920d7fb295
4 changed files with 5 additions and 3 deletions

View File

@ -243,7 +243,7 @@ s32 Sys_GetSharedContents(SharedContent** out, u32* count)
int ret = 0;
u32 size;
SharedContent* buf = NANDLoadFile("/shared1/content.map", &size);
SharedContent* buf = (SharedContent*)NANDLoadFile("/shared1/content.map", &size);
if (!buf)
return (s32)size;

View File

@ -6,6 +6,7 @@
#include <ogc/es.h>
#include "sha1.h"
#include "aes.h"
#include "utils.h"
#include "otp.h"
#include "malloc.h"
@ -341,4 +342,4 @@ void Title_SetupCommonKeys(void)
keys_ok = true;
return;
};
};

View File

@ -183,6 +183,8 @@ int main(int argc, char **argv)
WKB_Initialize();
WIILIGHT_Init();
Title_SetupCommonKeys();
/* Print disclaimer */
//Disclaimer();

View File

@ -571,7 +571,6 @@ bool __Wad_FixTicket(signed_blob *s_tik)
{
__attribute__ ((aligned(0x10)))
aeskey tkeybuf;
aeskey commonkey;
u64 iv[2];
memcpy(tkeybuf, p_tik->cipher_title_key, sizeof(aeskey));