This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/loader/source/main.c

19 lines
346 B
C

#include "fatfs/ff.h"
#define PAYLOAD_ADDRESS 0x23F00000
void main(void)
{
FATFS fs;
f_mount(&fs, "0:", 1);
FIL payload;
unsigned int read;
f_open(&payload, (char *)0x24F02000, FA_READ);
f_read(&payload, (void *)PAYLOAD_ADDRESS, f_size(&payload), &read);
f_close(&payload);
((void (*)())PAYLOAD_ADDRESS)();
}