2017-01-04 20:19:26 +01:00
|
|
|
#include <nsysnet/socket.h>
|
2016-10-05 16:03:29 +02:00
|
|
|
#include "Application.h"
|
|
|
|
#include "system/memory.h"
|
|
|
|
#include "utils/logger.h"
|
|
|
|
#include "utils/utils.h"
|
2017-01-04 20:19:26 +01:00
|
|
|
#include "dynamic_libs/padscore_functions.h"
|
2016-10-05 16:03:29 +02:00
|
|
|
#include "common/common.h"
|
|
|
|
|
|
|
|
/* Entry point */
|
2017-01-04 20:19:26 +01:00
|
|
|
extern "C" int Menu_Main(void)
|
|
|
|
{
|
2016-10-05 16:03:29 +02:00
|
|
|
//!*******************************************************************
|
|
|
|
//! Initialize function pointers *
|
|
|
|
//!*******************************************************************
|
2017-01-04 20:19:26 +01:00
|
|
|
socket_lib_init();
|
2016-10-05 16:03:29 +02:00
|
|
|
//! do OS (for acquire) and sockets first so we got logging
|
|
|
|
log_init("192.168.1.12");
|
|
|
|
|
2017-01-04 20:19:26 +01:00
|
|
|
InitPadScoreFunctionPointers();
|
|
|
|
log_printf("Function exports loaded\n");
|
|
|
|
|
|
|
|
log_print("Initialize memory management\n");
|
|
|
|
memoryInitialize();
|
2016-10-05 16:03:29 +02:00
|
|
|
|
|
|
|
//!*******************************************************************
|
|
|
|
//! Initialize heap memory *
|
|
|
|
//!*******************************************************************
|
|
|
|
|
|
|
|
log_printf("Start main application\n");
|
|
|
|
Application::instance()->exec();
|
|
|
|
|
|
|
|
Application::destroyInstance();
|
2017-01-04 20:19:26 +01:00
|
|
|
|
|
|
|
log_deinit();
|
|
|
|
|
2016-10-05 16:03:29 +02:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|