mirror of
https://github.com/wiiu-env/MochaLite.git
synced 2024-11-01 02:25:10 +01:00
43f1af08a3
NOTE: This is a work in progress commit. It includes debug and test functions and some features that existed before might not even work. It is not finished and not very well tested. So it's warning to NOT use this for everyday playing! This is target for developers to look some stuff up that I was working on. See also my post on gbatemp for more information.
32 lines
649 B
C
32 lines
649 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "wupserver.h"
|
|
#include "ipc.h"
|
|
#include "svc.h"
|
|
#include "text.h"
|
|
#include "../../common/config_types.h"
|
|
#include "../../common/kernel_commands.h"
|
|
|
|
static int threadsStarted = 0;
|
|
|
|
int _startMainThread(void)
|
|
{
|
|
if(threadsStarted == 0)
|
|
{
|
|
threadsStarted = 1;
|
|
cfw_config_t cfw_config;
|
|
memset(&cfw_config, 0, sizeof(cfw_config));
|
|
svcCustomKernelCommand(KERNEL_GET_CFW_CONFIG, &cfw_config);
|
|
|
|
if(cfw_config.launchImage)
|
|
{
|
|
drawSplashScreen();
|
|
}
|
|
|
|
wupserver_init();
|
|
ipc_init();
|
|
}
|
|
return 0;
|
|
}
|