Browse Source

Fixed debugging symbols for Mono

pull/46/head
Anairkoen Schno 6 years ago
parent
commit
93786aa73b
4 changed files with 14 additions and 9 deletions
  1. +1
    -1
      Doorstop
  2. +2
    -6
      IPA.Injector/IPA.Injector.csproj
  3. +10
    -1
      IPA.Injector/Injector.cs
  4. +1
    -1
      IPA.Loader/IPA.Loader.csproj

+ 1
- 1
Doorstop

@ -1 +1 @@
Subproject commit 92da7bf4fbea717040bf4b1bb2d4e07af12bf861
Subproject commit 329be6d1d48cc1e8541a8eb2a54d893998806f22

+ 2
- 6
IPA.Injector/IPA.Injector.csproj View File

@ -13,10 +13,10 @@
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<PathMap>$(SolutionDir)=C:\</PathMap>
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
@ -24,8 +24,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@ -82,15 +82,11 @@
</Content>
<Content Include="..\Libs\Microsoft.CSharp.dll">
<Link>Libraries\Mono\Microsoft.CSharp.dll</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="..\Libs\System.Runtime.Serialization.dll">
<Link>Libraries\Mono\System.Runtime.Serialization.dll</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Libraries\Mono\Mono.Debugger.Soft.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Mono.Unofficial.pdb2mdb">


+ 10
- 1
IPA.Injector/Injector.cs View File

@ -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;


+ 1
- 1
IPA.Loader/IPA.Loader.csproj View File

@ -13,10 +13,10 @@
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<PathMap>$(SolutionDir)=C:\</PathMap>
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>


Loading…
Cancel
Save