mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-14 14:26:40 -05:00
Check the module information struct version
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user