mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-09-08 01:55:51 -05:00
WUPS 0.6, add support for config and storage
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
extern "C" void OSFatal(const char *msg);
|
||||
|
||||
extern "C" void __wups_start(){
|
||||
extern "C" void __wups_start() {
|
||||
OSFatal("This file needs to be run with the Wii U Plugin System.");
|
||||
}
|
||||
|
||||
extern __attribute__((weak)) void __wut_socket_init_devoptab();
|
||||
|
||||
extern __attribute__((weak)) void __wut_socket_fini_devoptab();
|
||||
|
||||
static int __wut_socket_devoptab_added = 0;
|
||||
@@ -12,7 +13,7 @@ static int __wut_socket_devoptab_added = 0;
|
||||
extern void socket_lib_init();
|
||||
|
||||
void __attribute__((weak)) __init_wut_socket() {
|
||||
if(!&__wut_socket_init_devoptab) return;
|
||||
if (!&__wut_socket_init_devoptab) return;
|
||||
if (!__wut_socket_devoptab_added) {
|
||||
socket_lib_init();
|
||||
__wut_socket_init_devoptab();
|
||||
@@ -21,7 +22,7 @@ void __attribute__((weak)) __init_wut_socket() {
|
||||
}
|
||||
|
||||
void __attribute__((weak)) __fini_wut_socket() {
|
||||
if(!&__wut_socket_init_devoptab || !&__wut_socket_fini_devoptab) return;
|
||||
if (!&__wut_socket_init_devoptab || !&__wut_socket_fini_devoptab) return;
|
||||
if (__wut_socket_devoptab_added) {
|
||||
__wut_socket_fini_devoptab();
|
||||
__wut_socket_devoptab_added = 0;
|
||||
|
||||
Reference in New Issue
Block a user