2017-02-01 23:41:05 +01:00
|
|
|
#include "installer.h"
|
|
|
|
#include "ui.h"
|
|
|
|
#include "i2c.h"
|
2017-02-02 15:42:39 +01:00
|
|
|
#include "qff.h"
|
2017-02-01 23:41:05 +01:00
|
|
|
|
2017-03-17 15:26:59 +01:00
|
|
|
|
2017-02-01 23:41:05 +01:00
|
|
|
void Reboot()
|
|
|
|
{
|
|
|
|
i2cWriteRegister(I2C_DEV_MCU, 0x20, 1 << 2);
|
|
|
|
while(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2017-05-20 15:36:57 +02:00
|
|
|
ClearScreenF(true, true, COLOR_STD_BG);
|
2017-05-17 21:44:20 +02:00
|
|
|
u32 ret = SafeB9SInstaller();
|
2017-02-01 23:41:05 +01:00
|
|
|
ShowInstallerStatus(); // update installer status one last time
|
|
|
|
if (ret) ShowPrompt(false, "SigHaxed FIRM was not installed!\nCheck lower screen for info.");
|
2017-02-02 15:42:39 +01:00
|
|
|
else ShowPrompt(false, "SigHaxed FIRM install success!");
|
2017-02-01 23:41:05 +01:00
|
|
|
ClearScreenF(true, true, COLOR_STD_BG);
|
2017-02-02 15:42:39 +01:00
|
|
|
fs_deinit();
|
2017-02-01 23:41:05 +01:00
|
|
|
Reboot();
|
|
|
|
return 0;
|
|
|
|
}
|