|
1 | 1 | using Microsoft.AspNetCore.HttpOverrides; |
2 | | -using Microsoft.EntityFrameworkCore; |
3 | 2 |
|
4 | 3 | using TASagentTwitchBot.Core.Extensions; |
5 | 4 | using TASagentTwitchBot.Core.Web; |
6 | 5 | using TASagentTwitchBot.Plugin.Audio.Midi; |
7 | 6 |
|
8 | 7 | //Initialize DataManagement |
9 | | -BGC.IO.DataManagement.Initialize("TASagentBotKezBoard"); |
| 8 | +string oldPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "TASagentBotKezBoard"); |
| 9 | +string newPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "TASagentBotKeyboardDisplay"); |
| 10 | + |
| 11 | +if (Directory.Exists(oldPath)) |
| 12 | +{ |
| 13 | + Directory.Move(oldPath, newPath); |
| 14 | +} |
| 15 | + |
| 16 | + |
| 17 | +BGC.IO.DataManagement.Initialize("TASagentBotKeyboardDisplay"); |
10 | 18 |
|
11 | 19 | // |
12 | 20 | // Define and register services |
|
39 | 47 |
|
40 | 48 | //Custom Core Systems |
41 | 49 | builder.Services |
42 | | - .AddTASSingleton<TASagentStreamBot.KezBoard.KezBoardView>(); |
| 50 | + .AddTASSingleton<TASagentStreamBot.KeyboardDisplay.KeyboardView>(); |
43 | 51 |
|
44 | 52 | //Custom Configurator |
45 | 53 | builder.Services |
46 | | - .AddTASSingleton<TASagentStreamBot.KezBoard.Configurator>(); |
| 54 | + .AddTASSingleton<TASagentStreamBot.KeyboardDisplay.Configurator>(); |
47 | 55 |
|
48 | 56 | //Core Audio System |
49 | 57 | builder.Services |
|
68 | 76 |
|
69 | 77 | //Custom Midi Components |
70 | 78 | builder.Services |
71 | | - .AddTASSingleton(TASagentStreamBot.KezBoard.MidiBindingConfig.GetConfig()) |
72 | | - .AddTASSingleton<TASagentStreamBot.KezBoard.ControllerMidiBinding>(); |
| 79 | + .AddTASSingleton(TASagentStreamBot.KeyboardDisplay.MidiBindingConfig.GetConfig()) |
| 80 | + .AddTASSingleton<TASagentStreamBot.KeyboardDisplay.ControllerMidiBinding>(); |
73 | 81 |
|
74 | 82 | //XInput Services |
75 | 83 | builder.Services |
|
115 | 123 |
|
116 | 124 | //Core Control Page Hub |
117 | 125 | app.MapHub<TASagentTwitchBot.Core.Web.Hubs.MonitorHub>("/Hubs/Monitor"); |
118 | | -app.MapHub<TASagentStreamBot.KezBoard.Web.Hubs.PianoDisplayHub>("/Hubs/PianoDisplay"); |
| 126 | +app.MapHub<TASagentStreamBot.KeyboardDisplay.Web.Hubs.PianoDisplayHub>("/Hubs/PianoDisplay"); |
119 | 127 |
|
120 | 128 | await app.StartAsync(); |
121 | 129 |
|
|
151 | 159 | } |
152 | 160 |
|
153 | 161 |
|
154 | | -TASagentStreamBot.KezBoard.ControllerMidiBinding midiBinding = |
155 | | - app.Services.GetRequiredService<TASagentStreamBot.KezBoard.ControllerMidiBinding>(); |
| 162 | +TASagentStreamBot.KeyboardDisplay.ControllerMidiBinding midiBinding = |
| 163 | + app.Services.GetRequiredService<TASagentStreamBot.KeyboardDisplay.ControllerMidiBinding>(); |
156 | 164 |
|
157 | 165 | IMidiDeviceManager midiDeviceManager = app.Services.GetRequiredService<IMidiDeviceManager>(); |
158 | 166 | MidiKeyboardHandler midiKeyboardHandler = app.Services.GetRequiredService<MidiKeyboardHandler>(); |
|
0 commit comments