diff options
author | saturneric <[email protected]> | 2023-10-17 15:17:18 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-17 15:17:18 +0000 |
commit | 32b6d924e24d9ec80af2013009107cceb06c7489 (patch) | |
tree | 5e87555a465adf8cf7ad9adffbddbffd1fbaccc2 /src/module/GpgFrontendModuleInit.cpp | |
parent | refactor: change plugin system to module system (diff) | |
download | GpgFrontend-32b6d924e24d9ec80af2013009107cceb06c7489.tar.gz GpgFrontend-32b6d924e24d9ec80af2013009107cceb06c7489.zip |
fix: slove compile issues
Diffstat (limited to '')
-rw-r--r-- | src/module/GpgFrontendModuleInit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/module/GpgFrontendModuleInit.cpp b/src/module/GpgFrontendModuleInit.cpp index 53f71b71..234d0c18 100644 --- a/src/module/GpgFrontendModuleInit.cpp +++ b/src/module/GpgFrontendModuleInit.cpp @@ -36,16 +36,16 @@ #include <memory> #include "core/function/GlobalSettingStation.h" -#include "module/system/PluginManager.h" +#include "module/system/ModuleManager.h" -// integrated plugins +// integrated modules #include "integrated/version_checking_module/VersionCheckingModule.h" namespace GpgFrontend::Module { void LoadGpgFrontendIntegratedModules() { SPDLOG_INFO("loading integrated module..."); - ModuleManager::GetInstance()->RegisterPlugin( + ModuleManager::GetInstance()->RegisterModule( std::make_shared< Integrated::VersionCheckingModule::VersionCheckingModule>()); } @@ -70,7 +70,7 @@ void InitModuleLoggingSystem() { // logger auto module_logger = std::make_shared<spdlog::async_logger>( - "plugin", begin(sinks), end(sinks), spdlog::thread_pool()); + "module", begin(sinks), end(sinks), spdlog::thread_pool()); module_logger->set_pattern( "[%H:%M:%S.%e] [T:%t] [%=4n] %^[%=8l]%$ [%s:%#] [%!] -> %v (+%ius)"); |