mirror of
https://github.com/wiiu-env/homebrew_launcher.git
synced 2024-11-16 17:59:18 +01:00
70 lines
2.3 KiB
C++
70 lines
2.3 KiB
C++
//#include <string>
|
|
#include "Application.h"
|
|
#include "dynamic_libs/os_functions.h"
|
|
#include "dynamic_libs/fs_functions.h"
|
|
#include "dynamic_libs/gx2_functions.h"
|
|
#include "dynamic_libs/sys_functions.h"
|
|
#include "dynamic_libs/vpad_functions.h"
|
|
#include "dynamic_libs/padscore_functions.h"
|
|
#include "dynamic_libs/socket_functions.h"
|
|
#include "dynamic_libs/ax_functions.h"
|
|
#include "fs/fs_utils.h"
|
|
#include "fs/sd_fat_devoptab.h"
|
|
#include "system/memory.h"
|
|
#include "utils/logger.h"
|
|
#include "utils/utils.h"
|
|
#include "common/common.h"
|
|
|
|
/* Entry point */
|
|
extern "C" int Menu_Main(void)
|
|
{
|
|
//!*******************************************************************
|
|
//! Initialize function pointers *
|
|
//!*******************************************************************
|
|
//! do OS (for acquire) and sockets first so we got logging
|
|
InitOSFunctionPointers();
|
|
InitSocketFunctionPointers();
|
|
|
|
log_init("192.168.178.3");
|
|
log_print("Starting launcher\n");
|
|
|
|
InitFSFunctionPointers();
|
|
InitGX2FunctionPointers();
|
|
InitSysFunctionPointers();
|
|
InitVPadFunctionPointers();
|
|
InitPadScoreFunctionPointers();
|
|
InitAXFunctionPointers();
|
|
|
|
log_print("Function exports loaded\n");
|
|
|
|
//!*******************************************************************
|
|
//! Initialize heap memory *
|
|
//!*******************************************************************
|
|
log_print("Initialize memory management\n");
|
|
memoryInitialize();
|
|
|
|
//!*******************************************************************
|
|
//! Initialize FS *
|
|
//!*******************************************************************
|
|
log_printf("Mount SD partition\n");
|
|
mount_sd_fat("sd");
|
|
|
|
//!*******************************************************************
|
|
//! Enter main application *
|
|
//!*******************************************************************
|
|
log_printf("Start main application\n");
|
|
int returnCode = Application::instance()->exec();
|
|
log_printf("Main application stopped\n");
|
|
|
|
Application::destroyInstance();
|
|
|
|
log_printf("Unmount SD\n");
|
|
unmount_sd_fat("sd");
|
|
log_printf("Release memory\n");
|
|
memoryRelease();
|
|
log_deinit();
|
|
|
|
return returnCode;
|
|
}
|
|
|