mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +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
|
|
@ -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