2016-02-29 22:28:18 +01:00
|
|
|
#include "Application.h"
|
|
|
|
#include "system/memory.h"
|
|
|
|
#include "utils/logger.h"
|
|
|
|
#include "utils/utils.h"
|
2016-10-19 17:56:50 +02:00
|
|
|
#include "dynamic_libs/padscore_functions.h"
|
2016-02-29 22:28:18 +01:00
|
|
|
#include "common/common.h"
|
2016-11-06 23:16:13 +01:00
|
|
|
#include "kernel/gx2sploit.h"
|
2016-02-29 22:28:18 +01:00
|
|
|
|
|
|
|
/* Entry point */
|
|
|
|
extern "C" int Menu_Main(void)
|
|
|
|
{
|
|
|
|
//!*******************************************************************
|
|
|
|
//! Initialize function pointers *
|
|
|
|
//!*******************************************************************
|
|
|
|
//! do OS (for acquire) and sockets first so we got logging
|
|
|
|
log_init("192.168.178.3");
|
|
|
|
|
2016-11-06 23:16:13 +01:00
|
|
|
//! *******************************************************************
|
|
|
|
//! * Check if our application needs to run the kexploit started *
|
|
|
|
//! *******************************************************************
|
|
|
|
if(CheckKernelExploit() == 0)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
log_printf("Welcome to the Homebrew Launcher %s\n", HBL_VERSION);
|
|
|
|
|
2016-10-19 17:56:50 +02:00
|
|
|
InitPadScoreFunctionPointers();
|
2016-11-06 23:16:13 +01:00
|
|
|
log_printf("Function exports loaded\n");
|
2016-02-29 22:28:18 +01:00
|
|
|
|
|
|
|
//!*******************************************************************
|
|
|
|
//! Enter main application *
|
|
|
|
//!*******************************************************************
|
|
|
|
log_printf("Start main application\n");
|
|
|
|
int returnCode = Application::instance()->exec();
|
|
|
|
log_printf("Main application stopped\n");
|
|
|
|
|
|
|
|
Application::destroyInstance();
|
|
|
|
|
2016-11-06 23:16:13 +01:00
|
|
|
log_printf("HBL exit\n");
|
2016-02-29 22:28:18 +01:00
|
|
|
log_deinit();
|
|
|
|
|
|
|
|
return returnCode;
|
|
|
|
}
|
|
|
|
|