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

26 lines
511 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
int mode = 1;
2015-08-05 03:57:37 +02:00
int main(){
mountSD();
loadSplash();
while(1){
if(((~*(unsigned *)0x10146000) & 0xFFF) == (1 << 3)) break;
else if(((~*(unsigned *)0x10146000) & 0xFFF) == ((1 << 3) | (1 << 1))) {mode = 0; break;}
} //Start = emu; Start+B = sys
loadFirm(mode);
2015-08-05 03:57:37 +02:00
patchFirm();
launchFirm();
return 0;
}