summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-26 08:39:22 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-26 08:39:22 -0500
commitc3068ce50ab6e25e21452c2ea2f83086ddf555d5 (patch)
tree0e4f7c67852256a9847a8deccae8226d292b7969 /src/main.cpp
parent2c2c47c21502db6471fe7d727f942c2400b150c1 (diff)
added rivatuner to sanity checks
now also checks modules loaded after startup fixed crash on w7 when checking some modules
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6e112479..3cccf365 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -93,6 +93,7 @@ using namespace MOShared;
void sanityChecks(const env::Environment& env);
+int checkIncompatibleModule(const env::Module& m);
bool createAndMakeWritable(const std::wstring &subPath) {
QString const dataPath = qApp->property("dataPath").toString();
@@ -547,8 +548,9 @@ int runApplication(MOApplication &application, SingleInstance &instance,
settings.dump();
sanityChecks(env);
- const auto moduleNotification = env.onModuleLoaded([](auto&& m) {
+ const auto moduleNotification = env.onModuleLoaded(qApp, [](auto&& m) {
log::debug("loaded module {}", m.toString());
+ checkIncompatibleModule(m);
});
log::debug("initializing core");