IT WORKS
This commit is contained in:
parent
a4b6f965a8
commit
920d7fb295
|
@ -243,7 +243,7 @@ s32 Sys_GetSharedContents(SharedContent** out, u32* count)
|
||||||
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
u32 size;
|
u32 size;
|
||||||
SharedContent* buf = NANDLoadFile("/shared1/content.map", &size);
|
SharedContent* buf = (SharedContent*)NANDLoadFile("/shared1/content.map", &size);
|
||||||
|
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return (s32)size;
|
return (s32)size;
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include <ogc/es.h>
|
#include <ogc/es.h>
|
||||||
|
|
||||||
#include "sha1.h"
|
#include "sha1.h"
|
||||||
|
#include "aes.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "otp.h"
|
#include "otp.h"
|
||||||
#include "malloc.h"
|
#include "malloc.h"
|
||||||
|
@ -341,4 +342,4 @@ void Title_SetupCommonKeys(void)
|
||||||
|
|
||||||
keys_ok = true;
|
keys_ok = true;
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
|
@ -183,6 +183,8 @@ int main(int argc, char **argv)
|
||||||
WKB_Initialize();
|
WKB_Initialize();
|
||||||
WIILIGHT_Init();
|
WIILIGHT_Init();
|
||||||
|
|
||||||
|
Title_SetupCommonKeys();
|
||||||
|
|
||||||
/* Print disclaimer */
|
/* Print disclaimer */
|
||||||
//Disclaimer();
|
//Disclaimer();
|
||||||
|
|
||||||
|
|
|
@ -571,7 +571,6 @@ bool __Wad_FixTicket(signed_blob *s_tik)
|
||||||
{
|
{
|
||||||
__attribute__ ((aligned(0x10)))
|
__attribute__ ((aligned(0x10)))
|
||||||
aeskey tkeybuf;
|
aeskey tkeybuf;
|
||||||
aeskey commonkey;
|
|
||||||
u64 iv[2];
|
u64 iv[2];
|
||||||
|
|
||||||
memcpy(tkeybuf, p_tik->cipher_title_key, sizeof(aeskey));
|
memcpy(tkeybuf, p_tik->cipher_title_key, sizeof(aeskey));
|
||||||
|
|
Loading…
Reference in New Issue