diff --git a/source/main.cpp b/source/main.cpp index 4d20b4f..3fe64ab 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -23,6 +23,12 @@ std::vector loadPlugins(const std::vector &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() {