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

23 lines
357 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"
#include "i2c.h"
2015-08-05 03:57:37 +02:00
2016-03-17 04:51:07 +01:00
void main(void){
2015-08-05 03:57:37 +02:00
mountSD();
setupCFW();
if(!loadFirm()) return;
if(!patchFirm()) return;
2015-08-05 03:57:37 +02:00
launchFirm();
}
void shutdown(void){
i2cWriteRegister(I2C_DEV_MCU, 0x20, 1);
2015-08-05 03:57:37 +02:00
}