homebrew_launcher/src/main.cpp
dimok789 cfaf2bbc6d - added automatic gx2sploit execution and detection of existing environment
- the RPX file can now be used in a channel with for example the NUSPacker (HBL works now as a standalone channel with no PPC exploit pre-requisite like the browser exploit)
- adaptions in sd_launcher
- fixed listing ELF files
- fix launching of ELF files from HBL channel
- since HBL RPX does not use 0x0080000 area anymore, the maximum homebrew size is increased to 0x800000 - 0x2000 bytes
- removed browser installer from RPX branch as it is of no use here

NOTE:
A channel will not yet be provided. app.xml, cos.xml, meta.xml and the icons/splash images will be provided later. Possible title id choice 00050000-13371337 :P.
2016-11-12 15:06:26 +01:00

46 lines
1.5 KiB
C++

#include "Application.h"
#include "system/memory.h"
#include "utils/logger.h"
#include "utils/utils.h"
#include "dynamic_libs/padscore_functions.h"
#include "common/common.h"
#include "kernel/gx2sploit.h"
/* 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");
//! *******************************************************************
//! * 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);
InitPadScoreFunctionPointers();
log_printf("Function exports loaded\n");
//!*******************************************************************
//! Enter main application *
//!*******************************************************************
log_printf("Start main application\n");
int returnCode = Application::instance()->exec();
log_printf("Main application stopped\n");
Application::destroyInstance();
log_printf("HBL exit\n");
log_deinit();
return returnCode;
}