From 419cd94f7559ad5fa80591b84b8849e0eddee4b3 Mon Sep 17 00:00:00 2001 From: Jens-Peter Date: Thu, 5 Jul 2018 00:56:33 +0200 Subject: [PATCH] - Update to DMXControl 3.1.2 - Update post build procedure to read app path of DMXControl 3 from the registry --- MidiPlugin.Rules/AssemblyHelper.cs | 5 ++++- MidiPlugin.Rules/MidiPlugin.Rules.csproj | 3 ++- MidiPlugin.csproj | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/MidiPlugin.Rules/AssemblyHelper.cs b/MidiPlugin.Rules/AssemblyHelper.cs index d4848a9..f484130 100644 --- a/MidiPlugin.Rules/AssemblyHelper.cs +++ b/MidiPlugin.Rules/AssemblyHelper.cs @@ -9,7 +9,10 @@ namespace MidiPlugin public class AssemblyHelper : IAssemblyListener { public List DeviceRuleTypes = new List(); - public AssemblyHelper() + + public Type[] ListeningTypes => DeviceRuleTypes.ToArray(); + + public AssemblyHelper() { AssemblyManager.getInstance().registerAssemblyListener(this); ContextManager.AssemblyHelper = this; diff --git a/MidiPlugin.Rules/MidiPlugin.Rules.csproj b/MidiPlugin.Rules/MidiPlugin.Rules.csproj index 625fc5b..63dee02 100644 --- a/MidiPlugin.Rules/MidiPlugin.Rules.csproj +++ b/MidiPlugin.Rules/MidiPlugin.Rules.csproj @@ -102,7 +102,8 @@ - copy /Y "$(TargetDir)$(TargetFileName)" "C:\Program Files (x86)\DMXControl3\GUI" + FOR /F "skip=2 tokens=2,*" %25%25A IN ('reg.exe query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Lumos.exe" /v ""') DO set "DMXCRF=%25%25B" +copy /Y "$(TargetDir)$(TargetFileName)" "%25DMXCRF%25\GUI"