2015-08-04 21:57:37 -04:00
|
|
|
/*
|
|
|
|
|
* main.c
|
2016-03-23 02:27:53 +01:00
|
|
|
* by Reisyukaku / Aurora Wright
|
|
|
|
|
* Copyright (c) 2016 All Rights Reserved
|
2015-08-04 21:57:37 -04:00
|
|
|
*
|
2016-03-23 02:27:53 +01:00
|
|
|
* Minimalist CFW for (N)3DS
|
2015-08-04 21:57:37 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "fs.h"
|
|
|
|
|
#include "firm.h"
|
2016-03-20 01:00:45 +01:00
|
|
|
#include "i2c.h"
|
2015-08-04 21:57:37 -04:00
|
|
|
|
2016-03-17 04:51:07 +01:00
|
|
|
void main(void){
|
2015-08-04 21:57:37 -04:00
|
|
|
mountSD();
|
2016-02-25 20:19:20 +01:00
|
|
|
setupCFW();
|
2016-03-08 15:13:55 +01:00
|
|
|
if(!loadFirm()) return;
|
|
|
|
|
if(!patchFirm()) return;
|
2015-08-04 21:57:37 -04:00
|
|
|
launchFirm();
|
2016-03-20 01:00:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void shutdown(void){
|
|
|
|
|
i2cWriteRegister(I2C_DEV_MCU, 0x20, 1);
|
2015-08-04 21:57:37 -04:00
|
|
|
}
|