fix: add experimental fix for Discord.Net 100% cpu bug, restructure project

This commit is contained in:
goat 2020-02-17 20:57:56 +09:00
parent 423135a858
commit 6d57da2fec
6 changed files with 64 additions and 3 deletions

View file

@ -24,7 +24,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EasyHook" Version="2.7.6270" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dalamud\Dalamud.csproj" />

View file

@ -14,6 +14,7 @@ using Newtonsoft.Json;
namespace Dalamud.Injector {
internal static class Program {
private static void Main(string[] args) {
#if !DEBUG
AppDomain.CurrentDomain.UnhandledException += delegate(object sender, UnhandledExceptionEventArgs eventArgs)
{
File.WriteAllText("InjectorException.txt", eventArgs.ExceptionObject.ToString());
@ -22,6 +23,7 @@ namespace Dalamud.Injector {
Environment.Exit(0);
};
#endif
var pid = int.Parse(args[0]);