35 lines
681 B
C#
35 lines
681 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VirtualDJ_MidiDeviceBridge
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
if (args.Length < 1 || args[0] == "")
|
|
{
|
|
Console.WriteLine("Please provide a config path!");
|
|
return;
|
|
}
|
|
|
|
Globals.ConfigPath = args[0];
|
|
Console.WriteLine($"Using config from '{Globals.ConfigPath}'");
|
|
|
|
Globals.UserReadConfig();
|
|
|
|
Globals.UserSelectDevice();
|
|
|
|
MidiManager.SetupDevice();
|
|
Globals.StartConfigWatcher();
|
|
MidiManager.Work();
|
|
}
|
|
}
|
|
}
|