summaryrefslogtreecommitdiff
path: root/src/env.h
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/env.h
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/env.h')
-rw-r--r--src/env.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/env.h b/src/env.h
index 946cb13b..dc0fd864 100644
--- a/src/env.h
+++ b/src/env.h
@@ -122,7 +122,7 @@ private:
class ModuleNotification
{
public:
- ModuleNotification(std::function<void (Module)> f);
+ ModuleNotification(QObject* o, std::function<void (Module)> f);
~ModuleNotification();
ModuleNotification(const ModuleNotification&) = delete;
@@ -132,10 +132,12 @@ public:
ModuleNotification& operator=(ModuleNotification&&) = default;
void setCookie(void* c);
- void fire(const Module& m);
+ void fire(QString path, std::size_t fileSize);
private:
void* m_cookie;
+ QObject* m_object;
+ std::set<QString> m_loaded;
std::function<void (Module)> m_f;
};
@@ -172,8 +174,11 @@ public:
//
QString timezone() const;
+ // will call `f` on the same thread `o` is running on every time a module
+ // is loaded in the process
+ //
std::unique_ptr<ModuleNotification> onModuleLoaded(
- std::function<void (Module)> f);
+ QObject* o, std::function<void (Module)> f);
// logs the environment
//