Fixed support in the module manager

This commit is contained in:
Ryzerth
2021-07-26 03:11:51 +02:00
parent b327bfbe5d
commit 85de72a859
37 changed files with 369 additions and 138 deletions

View File

@ -41,15 +41,15 @@ public:
handler.tuneHandler = tune;
handler.stream = &stream;
sigpath::sourceManager.registerSource("File", &handler);
spdlog::info("FileSourceModule '{0}': Instance created!", name);
}
~FileSourceModule() {
spdlog::info("FileSourceModule '{0}': Instance deleted!", name);
stop(this);
sigpath::sourceManager.unregisterSource("File");
}
void postInit() {}
void enable() {
enabled = true;
}