From 93786aa73bcb3ebe831eb3a532c80a3176a2d3ee Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sat, 19 Jan 2019 19:59:29 -0600 Subject: [PATCH] Fixed debugging symbols for Mono --- Doorstop | 2 +- IPA.Injector/IPA.Injector.csproj | 8 ++------ IPA.Injector/Injector.cs | 11 ++++++++++- IPA.Loader/IPA.Loader.csproj | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Doorstop b/Doorstop index 92da7bf4..329be6d1 160000 --- a/Doorstop +++ b/Doorstop @@ -1 +1 @@ -Subproject commit 92da7bf4fbea717040bf4b1bb2d4e07af12bf861 +Subproject commit 329be6d1d48cc1e8541a8eb2a54d893998806f22 diff --git a/IPA.Injector/IPA.Injector.csproj b/IPA.Injector/IPA.Injector.csproj index 75c02622..aceeeb03 100644 --- a/IPA.Injector/IPA.Injector.csproj +++ b/IPA.Injector/IPA.Injector.csproj @@ -13,10 +13,10 @@ 512 true $(SolutionDir)=C:\ + portable true - full false bin\Debug\ DEBUG;TRACE @@ -24,8 +24,8 @@ 4 - pdbonly true + pdbonly bin\Release\ TRACE prompt @@ -82,15 +82,11 @@ Libraries\Mono\Microsoft.CSharp.dll - Always Libraries\Mono\System.Runtime.Serialization.dll Always - - Always - diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index 99f4f33e..529c3204 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -35,7 +35,9 @@ namespace IPA.Injector SetupLibraryLoading(); - log.Debug("Initializing logger"); + EnsureUserData(); + + //log.Debug("Initializing logger"); SelfConfig.Set(); @@ -53,6 +55,13 @@ namespace IPA.Injector } } + private static void EnsureUserData() + { + string path; + if (!Directory.Exists(path = Path.Combine(Environment.CurrentDirectory, "UserData"))) + Directory.CreateDirectory(path); + } + private static void SetupLibraryLoading() { if (loadingDone) return; diff --git a/IPA.Loader/IPA.Loader.csproj b/IPA.Loader/IPA.Loader.csproj index 04536d19..61ccb5e1 100644 --- a/IPA.Loader/IPA.Loader.csproj +++ b/IPA.Loader/IPA.Loader.csproj @@ -13,10 +13,10 @@ 512 true $(SolutionDir)=C:\ + portable true - full false bin\Debug\ DEBUG;TRACE