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
422 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 a9lh = 0;
2016-02-08 03:37:03 +01:00
u8 main(){
2015-08-05 03:57:37 +02:00
mountSD();
2016-02-19 04:53:19 +01:00
//Detect A9LH mode checking PDN_GPU_CNT2 register.
if (!*((u32*)0x10141204)) a9lh = 1;
else loadSplash();
if (loadFirm(a9lh)) 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;
}