Plugins - Added RequiresAdmin boolean

Utilities - Simplified shutdown method signature
Utilities - Added restart method with option to elevate
Core - Moved actual shutdown/restart logic to UI
This commit is contained in:
Robert committed 2021-01-21 19:25:46 +01:00
1 parent 281c18200a
commit de5b8e4458
12 files changed
+151 -39

No files matched your search

@@ -28,6 +28,11 @@ namespace Artemis.Core.Services
/// </summary>
List<string>? StartupArguments { get; set; }
/// <summary>
/// Gets a boolean indicating whether Artemis is running in an elevated environment (admin permissions)
/// </summary>
bool IsElevated { get; set; }
/// <summary>
/// Initializes the core, only call once
/// </summary>
@@ -26,7 +26,7 @@ namespace Artemis.Core.Services
/// <summary>
/// Loads all installed plugins. If plugins already loaded this will reload them all
/// </summary>
void LoadPlugins(bool ignorePluginLock);
void LoadPlugins(bool ignorePluginLock, bool isElevated);
/// <summary>
/// Unloads all installed plugins.