aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/plugins/plugins.cpp
diff options
context:
space:
mode:
authorcat_or_not <41955154+catornot@users.noreply.github.com>2023-06-07 18:57:19 -0400
committerGitHub <noreply@github.com>2023-06-07 18:57:19 -0400
commit9cf27a61fd7e096f816c512375ef2340ea4dfb10 (patch)
tree0818f8d5d5627062b4097d525d85893fae893282 /NorthstarDLL/plugins/plugins.cpp
parent6fe1805914fc10ad1f8539835bc53c208c8de417 (diff)
downloadNorthstarLauncher-9cf27a61fd7e096f816c512375ef2340ea4dfb10.tar.gz
NorthstarLauncher-9cf27a61fd7e096f816c512375ef2340ea4dfb10.zip
Restore `-noplugins` argument (#459)v1.14.3-rc1v1.14.31.14.X
Diffstat (limited to 'NorthstarDLL/plugins/plugins.cpp')
-rw-r--r--NorthstarDLL/plugins/plugins.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/NorthstarDLL/plugins/plugins.cpp b/NorthstarDLL/plugins/plugins.cpp
index 001f3578..c2ac112b 100644
--- a/NorthstarDLL/plugins/plugins.cpp
+++ b/NorthstarDLL/plugins/plugins.cpp
@@ -207,6 +207,11 @@ bool PluginManager::LoadPlugins()
data.version = ns_version.c_str();
data.northstarModule = g_NorthstarModule;
+ if (strstr(GetCommandLineA(), "-noplugins") != NULL)
+ {
+ NS::log::PLUGINSYS->warn("-noplugins detected; skipping loading plugins");
+ return false;
+ }
if (!fs::exists(pluginPath))
{
NS::log::PLUGINSYS->warn("Could not find a plugins directory. Skipped loading plugins");