mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-22 04:39:17 +01:00
Check the module information struct version
This commit is contained in:
parent
4edc55f02e
commit
4d13709c00
@ -23,6 +23,12 @@ std::vector<PluginContainer> loadPlugins(const std::vector<PluginData> &pluginLi
|
||||
module_information_t *gModuleData = NULL;
|
||||
WUMS_INITIALIZE(args) {
|
||||
gModuleData = args.module_information;
|
||||
if(gModuleData == NULL){
|
||||
OSFatal("WUPS-Backend: Failed to get gModuleData pointer.");
|
||||
}
|
||||
if(gModuleData->version != MODULE_INFORMATION_VERSION){
|
||||
OSFatal("WUPS-Backend: The module information struct version does not match.");
|
||||
}
|
||||
}
|
||||
|
||||
WUMS_APPLICATION_STARTS() {
|
||||
|
Loading…
Reference in New Issue
Block a user