aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/ModuleInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-12-01 17:50:03 +0000
committersaturneric <[email protected]>2024-12-01 18:39:07 +0000
commit50e461fd0be08616b9786a7d0a01c18d40d264a0 (patch)
tree9721ab3b4da82a8edcbca4c67e8ef5687502cf74 /src/core/module/ModuleInit.cpp
parentfeat: adjust gpg related libs version and speed up devops build on windows (diff)
downloadGpgFrontend-50e461fd0be08616b9786a7d0a01c18d40d264a0.tar.gz
GpgFrontend-50e461fd0be08616b9786a7d0a01c18d40d264a0.zip
fix: discovered bugs on windows platform
Diffstat (limited to 'src/core/module/ModuleInit.cpp')
-rw-r--r--src/core/module/ModuleInit.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/module/ModuleInit.cpp b/src/core/module/ModuleInit.cpp
index 175d35ad..977dd21e 100644
--- a/src/core/module/ModuleInit.cpp
+++ b/src/core/module/ModuleInit.cpp
@@ -50,7 +50,7 @@ auto SearchModuleFromPath(const QString& mods_path,
auto LoadIntegratedMods() -> QMap<QString, bool> {
const auto exec_binary_path = GlobalSettingStation::GetInstance().GetAppDir();
- QString mods_path = exec_binary_path + "/../modules";
+ QString mods_path = exec_binary_path + "/modules";
#ifdef NDEBUG
@@ -68,6 +68,12 @@ auto LoadIntegratedMods() -> QMap<QString, bool> {
}
#endif
+#else
+
+#if defined(_WIN32) || defined(WIN32)
+ mods_path = exec_binary_path + "/../modules/bin";
+#endif
+
#endif
if (!QDir(mods_path).exists()) {