Преглед изворни кода

UI: Don't load global plugins in portable mode

Portable mode is meant to be separated from the rest of the system, and
as such it doesn't make sense to load globally installed plugins there.

On Windows, there currently are only two major plugins that install
themselves there. Plugins installing themselves there is good, but it
currently also means that even portable instances load them which can
make testing and debugging in a clean environment annoying.
gxalpha пре 3 година
родитељ
комит
5d0a1c0010
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      UI/window-basic-main.cpp

+ 3 - 0
UI/window-basic-main.cpp

@@ -178,6 +178,9 @@ static void AddExtraModulePaths()
 				    data_path_with_module_suffix.c_str());
 				    data_path_with_module_suffix.c_str());
 	}
 	}
 
 
+	if (portable_mode)
+		return;
+
 	char base_module_dir[512];
 	char base_module_dir[512];
 #if defined(_WIN32)
 #if defined(_WIN32)
 	int ret = GetProgramDataPath(base_module_dir, sizeof(base_module_dir),
 	int ret = GetProgramDataPath(base_module_dir, sizeof(base_module_dir),