own implementation of singleton and logger
This commit is contained in:
1 parent
f6c5bcca39
commit
6aed7b0027
19 files changed
+745
-206
No files matched your search
+3
-10
@@ -3,16 +3,8 @@
|
||||
// #include "Youtube/Client.hpp"
|
||||
#include "ts6bot/AudioDecoder.hpp"
|
||||
#include <memory>
|
||||
#include <quill/Backend.h>
|
||||
#include <quill/Frontend.h>
|
||||
#include <quill/LogMacros.h>
|
||||
#include <quill/Logger.h>
|
||||
#include <quill/core/SinkManager.h>
|
||||
#include <singleton_atomic.hpp>
|
||||
#include "ts6bot/Config.hpp"
|
||||
#include <ts6bot/MusicManager.hpp>
|
||||
#include "quill/sinks/FileSink.h"
|
||||
#include "quill/sinks/ConsoleSink.h"
|
||||
#include <ts6bot/Proxy.hpp>
|
||||
|
||||
#include "PluginDefinitions.hpp"
|
||||
@@ -20,7 +12,6 @@
|
||||
|
||||
class EchoionCore : public IEchoionPlugin {
|
||||
// Dependencies
|
||||
quill::Logger *m_logger = nullptr;
|
||||
std::shared_ptr<TS3Functions> m_ts3;
|
||||
std::unique_ptr<MusicManager> m_musicManager;
|
||||
|
||||
@@ -415,5 +406,7 @@ extern "C" {
|
||||
return new EchoionCore(std::make_shared<TS3Functions>(*funcs));
|
||||
}
|
||||
|
||||
void DestroyPlugin(const IEchoionPlugin *plugin) { delete plugin; }
|
||||
void DestroyPlugin(const IEchoionPlugin *plugin) {
|
||||
delete plugin;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user