From 5682de7c0fd1226823848e89d7da89cb8a2921cd Mon Sep 17 00:00:00 2001 From: BaronKiko Date: Sat, 27 Apr 2019 13:57:42 +0100 Subject: [PATCH] Handle relative file paths in profiler config loading. (#685) --- Ryujinx.Profiler/Profile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ryujinx.Profiler/Profile.cs b/Ryujinx.Profiler/Profile.cs index fcd50c69..7af73a52 100644 --- a/Ryujinx.Profiler/Profile.cs +++ b/Ryujinx.Profiler/Profile.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.IO; namespace Ryujinx.Profiler { @@ -18,7 +19,7 @@ namespace Ryujinx.Profiler [Conditional("USE_PROFILING")] public static void Initalize() { - var config = ProfilerConfiguration.Load("ProfilerConfig.jsonc"); + var config = ProfilerConfiguration.Load(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ProfilerConfig.jsonc")); _settings = new ProfilerSettings() {