Retire legacy implementations and flatten managed layout
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using VoiceCat.Audio;
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Audio;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel;
|
||||
using VoiceCat.App.Audio;
|
||||
using VoiceCat.App.Models;
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using VoiceCat.App.Models;
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ using VoiceCat.App.Audio;
|
||||
using VoiceCat.App.Models;
|
||||
using VoiceCat.App.Native;
|
||||
using VoiceCat.App.Notifications;
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using VoiceCat.Interop;
|
||||
using VoiceCat.Windows;
|
||||
|
||||
namespace VoiceCat.App.Forms;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ internal static partial class RawInput
|
||||
public uint ExtraInformation;
|
||||
}
|
||||
|
||||
// ── P/Invoke (source-generated via LibraryImport, matching VoiceCat.Interop) ────────────
|
||||
// Raw Input P/Invoke (source-generated via LibraryImport).
|
||||
[LibraryImport("user32.dll", SetLastError = true)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
private static partial bool RegisterRawInputDevices(
|
||||
|
||||
@@ -20,7 +20,7 @@ internal static class Program
|
||||
{
|
||||
try
|
||||
{
|
||||
using var client = new VoiceCat.Interop.VoiceCatClient("Smoke", "test");
|
||||
using var client = new VoiceCat.Windows.VoiceCatClient("Smoke", "test");
|
||||
using var form = new MainForm(client, 0, "Smoke", "Managed core");
|
||||
form.CreateControl();
|
||||
if (form.Controls.Count == 0 || string.IsNullOrEmpty(form.Text)) return 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\VoiceCat.Managed\VoiceCat.Managed.csproj" />
|
||||
<ProjectReference Include="..\VoiceCat.Windows\VoiceCat.Windows.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Prismatoid — .NET bindings for the Prism speech library, used for spoken event
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
"voicecat.dsp": {
|
||||
"type": "Project"
|
||||
},
|
||||
"voicecat.managed": {
|
||||
"voicecat.windows": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"VoiceCat.Core": "[1.0.0, )"
|
||||
@@ -60,4 +60,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
"voicecat.dsp": {
|
||||
"type": "Project"
|
||||
},
|
||||
"voicecat.managed": {
|
||||
"voicecat.windows": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"VoiceCat.Core": "[1.0.0, )"
|
||||
@@ -74,4 +74,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user