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
Aurora 8872a243fc Better commenting
Everyone loves that!
2016-02-19 04:53:19 +01:00

24 lines
422 B
C

/*
* main.c
* by Reisyukaku
* Copyright (c) 2015 All Rights Reserved
*
* Minimalist CFW for N3DS
*/
#include "fs.h"
#include "firm.h"
#include "draw.h"
u8 a9lh = 0;
u8 main(){
mountSD();
//Detect A9LH mode checking PDN_GPU_CNT2 register.
if (!*((u32*)0x10141204)) a9lh = 1;
else loadSplash();
if (loadFirm(a9lh)) return 1;
if (patchFirm()) return 1;
launchFirm();
return 0;
}