mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-21 20:29:17 +01:00
Move global variables into a own file
This commit is contained in:
parent
441191e40b
commit
3af7de28d8
6
source/globals.cpp
Normal file
6
source/globals.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "globals.h"
|
||||
|
||||
MEMHeapHandle pluginDataHeap __attribute__((section(".data"))) = 0;
|
||||
plugin_information_t *gPluginInformation __attribute__((section(".data"))) = NULL;
|
||||
|
||||
plugin_information_on_reload_t gLinkOnReload __attribute__((section(".data")));
|
8
source/globals.h
Normal file
8
source/globals.h
Normal file
@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <plugin/PluginContainer.h>
|
||||
#include <common/plugin_defines.h>
|
||||
|
||||
extern plugin_information_t *gPluginInformation;
|
||||
extern MEMHeapHandle pluginDataHeap;
|
||||
extern plugin_information_on_reload_t gLinkOnReload;
|
@ -23,10 +23,9 @@
|
||||
#include "common/module_defines.h"
|
||||
#include "hooks.h"
|
||||
#include "PluginManagement.h"
|
||||
#include "globals.h"
|
||||
#include <whb/sdcard.h>
|
||||
|
||||
MEMHeapHandle pluginDataHeap __attribute__((section(".data"))) = 0;
|
||||
plugin_information_t *gPluginInformation __attribute__((section(".data"))) = NULL;
|
||||
|
||||
int test();
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <vpad/input.h>
|
||||
#include <coreinit/messagequeue.h>
|
||||
#include <coreinit/core.h>
|
||||
#include <globals.h>
|
||||
#include "hooks.h"
|
||||
|
||||
extern plugin_information_t *gPluginInformation;
|
||||
|
Loading…
Reference in New Issue
Block a user