Removes leftover debug scaffolding (stray Console.WriteLine/NSLog traces, dead nick_buf_ptr, a no-op --print-config flag now implemented for real), fixes stale/misleading comments (channel passwords are no longer a "future M5+" feature, a wrong cross-reference, a stale TlsContext::close() mention, an incomplete BanRecord::subject_type doc, and a smoke test pointing at a build/m1-dev preset that no longer exists), strips internal M1-M5 milestone jargon from comments now that the roadmap is done, trims comments that just restated the following line, and consolidates a few "why" explanations that were duplicated 2-3 times in the same file. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
28 lines
999 B
C#
28 lines
999 B
C#
using VoiceCat.App.Forms;
|
|
|
|
namespace VoiceCat.App;
|
|
|
|
internal static class Program
|
|
{
|
|
[STAThread]
|
|
private static void Main()
|
|
{
|
|
// Surface exceptions that WinForms' default message-loop handling would otherwise
|
|
// swallow silently (or crash with no visible cause).
|
|
Application.ThreadException += (_, e) =>
|
|
Console.Error.WriteLine($"[UNHANDLED ThreadException] {e.Exception}");
|
|
AppDomain.CurrentDomain.UnhandledException += (_, e) =>
|
|
Console.Error.WriteLine($"[UNHANDLED AppDomain exception] {e.ExceptionObject}");
|
|
|
|
ApplicationConfiguration.Initialize();
|
|
|
|
using var connectDialog = new ConnectDialog();
|
|
var result = connectDialog.ShowDialog();
|
|
if (result != DialogResult.OK || connectDialog.ConnectedClient is null)
|
|
return;
|
|
|
|
Application.Run(new MainForm(connectDialog.ConnectedClient, connectDialog.SelfUserId,
|
|
connectDialog.Nickname, connectDialog.ServerName));
|
|
}
|
|
}
|