Skip to content

Commit

Permalink
feat: Adds PepperDashCoreAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
ndorin committed May 23, 2024
1 parent 0a2aaa6 commit 448cc27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public static class PluginLoader

public static LoadedAssembly EssentialsAssembly { get; private set; }

public static LoadedAssembly PepperDashCoreAssembly { get; private set; }

public static List<LoadedAssembly> EssentialsPluginAssemblies { get; private set; }

/// <summary>
Expand Down Expand Up @@ -89,7 +91,8 @@ public static void AddProgramAssemblies()
}
case ("PepperDash_Core.dll"):
{
version = PepperDash.Core.Debug.PepperDashCoreVersion;
version = GetAssemblyVersion(assembly);
PepperDashCoreAssembly = new LoadedAssembly(fi.Name, version, assembly);
break;
}
}
Expand Down Expand Up @@ -197,6 +200,7 @@ public static bool CheckIfAssemblyLoaded(string name)
public static void ReportAssemblyVersions(string command)
{
CrestronConsole.ConsoleCommandResponse("Essentials Version: {0}" + CrestronEnvironment.NewLine, Global.AssemblyVersion);
CrestronConsole.ConsoleCommandResponse("PepperDash_Core Version: {0}" + CrestronEnvironment.NewLine, PepperDashCoreAssembly.Version);
CrestronConsole.ConsoleCommandResponse("Essentials Plugin Versions:" + CrestronEnvironment.NewLine);
foreach (var assembly in EssentialsPluginAssemblies)
{
Expand Down

0 comments on commit 448cc27

Please sign in to comment.