Check the module information struct version

This commit is contained in:
Maschell 2020-06-07 14:10:31 +02:00
parent 4edc55f02e
commit 4d13709c00

View File

@ -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() {