From 9cf27a61fd7e096f816c512375ef2340ea4dfb10 Mon Sep 17 00:00:00 2001 From: cat_or_not <41955154+catornot@users.noreply.github.com> Date: Wed, 7 Jun 2023 18:57:19 -0400 Subject: Restore `-noplugins` argument (#459) --- NorthstarDLL/plugins/plugins.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3