aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2018-02-09 04:23:20 +0100
committergdkchan <gab.dark.100@gmail.com>2018-02-09 00:23:20 -0300
commitebbccfcdbfe2927e1cfdb2fd6abc0502c9a52aed (patch)
tree67635175fa919186af13983ba6211f4783f52fd0
parent5ecfb5c6576a473870bbc8e25ae34ccf916e5a0a (diff)
config bugfix (#6)
Include Ryujinx.conf file to the build folder. Fix the Ryujinx.conf filepath.
-rw-r--r--Ryujinx.csproj5
-rw-r--r--Ryujinx/Config.cs3
2 files changed, 7 insertions, 1 deletions
diff --git a/Ryujinx.csproj b/Ryujinx.csproj
index 2c25afc0..9ad696d8 100644
--- a/Ryujinx.csproj
+++ b/Ryujinx.csproj
@@ -9,4 +9,9 @@
<PackageReference Include="OpenTK.NETCore" Version="1.1.2749.6433" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.4.0" />
</ItemGroup>
+ <ItemGroup>
+ <None Update="Ryujinx.conf">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/Ryujinx/Config.cs b/Ryujinx/Config.cs
index 2e4e5695..c27060d2 100644
--- a/Ryujinx/Config.cs
+++ b/Ryujinx/Config.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
+using System.Reflection;
namespace Ryujinx
{
@@ -17,7 +18,7 @@ namespace Ryujinx
public static void Read()
{
- IniParser Parser = new IniParser("Ryujinx.conf");
+ IniParser Parser = new IniParser(Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "Ryujinx.conf"));
LoggingEnableInfo = Convert.ToBoolean(Parser.Value("Logging_Enable_Info"));
LoggingEnableTrace = Convert.ToBoolean(Parser.Value("Logging_Enable_Trace"));