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"