mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
fix: add experimental fix for Discord.Net 100% cpu bug, restructure project
This commit is contained in:
parent
423135a858
commit
6d57da2fec
6 changed files with 64 additions and 3 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue