From 9ea4e0f84f391d226ab0356d8d8dacfad21e1cbf Mon Sep 17 00:00:00 2001 From: AlizerUncaged Date: Wed, 21 Feb 2024 23:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20hopefully=20fixed=20chromium=20n?= =?UTF-8?q?ot=20running?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dependencies/CharacterAI-NET-API-Wrapper | 2 +- README.md | 2 +- Waifu/App.xaml.cs | 11 + Waifu/Waifu.csproj | 331 ++++++++++++----------- 4 files changed, 179 insertions(+), 167 deletions(-) diff --git a/Dependencies/CharacterAI-NET-API-Wrapper b/Dependencies/CharacterAI-NET-API-Wrapper index 4529ce1..e1fab8e 160000 --- a/Dependencies/CharacterAI-NET-API-Wrapper +++ b/Dependencies/CharacterAI-NET-API-Wrapper @@ -1 +1 @@ -Subproject commit 4529ce1bc29865d5d7e014a1a9cdc250958439aa +Subproject commit e1fab8efdfc3494c1dbf0402cb294bbeb92a607f diff --git a/README.md b/README.md index 4fff007..7d6d801 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ By harnessing the power of the current technologies we have, we can turn the voi - Elevenlabs key, you can find it [here](https://beta.elevenlabs.io/subscription). -
+
diff --git a/Waifu/App.xaml.cs b/Waifu/App.xaml.cs index e257fc7..fbf27d2 100644 --- a/Waifu/App.xaml.cs +++ b/Waifu/App.xaml.cs @@ -9,6 +9,7 @@ using Microsoft.Extensions.Caching.Memory; using Newtonsoft.Json; using Serilog; +using Serilog.Core; using Serilog.Events; using Serilog.Extensions.Autofac.DependencyInjection; using Serilog.Sinks.SystemConsole.Themes; @@ -54,6 +55,16 @@ protected override void OnStartup(StartupEventArgs e) ).WriteTo.File(logPath) .MinimumLevel.Information(); + Application.Current.DispatcherUnhandledException += (sender, args) => + { + Logger.None.Error($"{args.Exception.ToString()}"); + }; + + AppDomain.CurrentDomain.UnhandledException += (sender, args) => + { + Logger.None.Error($"{args.ExceptionObject.ToString()}"); + }; + // // Log.Logger = logConfiguration // .CreateLogger(); diff --git a/Waifu/Waifu.csproj b/Waifu/Waifu.csproj index 64b8a09..57fa05a 100644 --- a/Waifu/Waifu.csproj +++ b/Waifu/Waifu.csproj @@ -1,6 +1,7 @@  + en WinExe net8.0-windows enable @@ -10,189 +11,189 @@ - x64 + x64 - x64 + x64 - - - - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + - - MSBuild:Compile - Wpf - Designer - + + MSBuild:Compile + Wpf + Designer + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Always - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Always + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + - - + +