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/source/main.c

24 lines
440 B
C
Raw Normal View History

2015-08-05 03:57:37 +02:00
/*
* main.c
* by Reisyukaku
2015-08-15 04:28:26 +02:00
* Copyright (c) 2015 All Rights Reserved
2015-08-05 03:57:37 +02:00
*
* Minimalist CFW for N3DS
*/
#include "fs.h"
#include "firm.h"
2015-08-05 11:54:00 +02:00
#include "draw.h"
2015-08-05 03:57:37 +02:00
u8 a9lhBoot = 0;
2016-02-08 03:37:03 +01:00
u8 main(){
2015-08-05 03:57:37 +02:00
mountSD();
//Detect an A9LH boot checking PDN_GPU_CNT register
if (*((u8*)0x10141200) == 0x1) a9lhBoot = 1;
else loadSplash();
if (loadFirm(a9lhBoot)) return 1;
2016-02-08 03:37:03 +01:00
if (patchFirm()) return 1;
2015-08-05 03:57:37 +02:00
launchFirm();
return 0;
}