From 50e461fd0be08616b9786a7d0a01c18d40d264a0 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 1 Dec 2024 18:50:03 +0100 Subject: fix: discovered bugs on windows platform --- src/core/module/ModuleInit.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core/module/ModuleInit.cpp') 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 { 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 { } #endif +#else + +#if defined(_WIN32) || defined(WIN32) + mods_path = exec_binary_path + "/../modules/bin"; +#endif + #endif if (!QDir(mods_path).exists()) { -- cgit v1.2.3