From 5857da49d0a722e565d8067ffde39e87f6a50d1a Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 1 Jul 2023 21:19:36 -0400 Subject: [PATCH] misc features --- MBS.Framework/Application.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/MBS.Framework/Application.cs b/MBS.Framework/Application.cs index 1b6caca..87e18b1 100755 --- a/MBS.Framework/Application.cs +++ b/MBS.Framework/Application.cs @@ -661,6 +661,15 @@ namespace MBS.Framework { // index++; // option.Value = args[index]; + if (!name.Contains("=")) + { + // already taken care of the true case above + if (index + 1 < args.Length) + { + index++; + value = args[index]; + } + } option.Value = value; } else @@ -883,6 +892,7 @@ namespace MBS.Framework OnBeforeShutdown(ce); if (ce.Cancel) { + Stopping = false; return; } @@ -891,7 +901,10 @@ namespace MBS.Framework // OnStopping called after setting Stopping to True, otherwise there is no real difference OnStopping(ce); if (ce.Cancel) + { + Stopping = false; return; + } StopInternal(exitCode); @@ -934,5 +947,11 @@ namespace MBS.Framework resultCode = 2; return true; } + + protected virtual Plugin[] GetAdditionalPluginsInternal() + { + return new Plugin[0]; + } + public Plugin[] GetAdditionalPlugins() { return GetAdditionalPluginsInternal(); } } }