From ee60de6bf49d75dd5a70a97e599d4f5a65ac4bda Mon Sep 17 00:00:00 2001 From: Andy Adshead Date: Sun, 27 Jan 2019 22:57:28 +0000 Subject: [PATCH] Fixed bug in profiling method where method was called twice without profiling enabled --- Ryujinx.Profiler/Profile.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ryujinx.Profiler/Profile.cs b/Ryujinx.Profiler/Profile.cs index 0d7b8169d0..82ba8c5e45 100644 --- a/Ryujinx.Profiler/Profile.cs +++ b/Ryujinx.Profiler/Profile.cs @@ -52,7 +52,10 @@ namespace Ryujinx.Profiler { // If profiling is disabled just call the method if (!ProfilingEnabled()) + { method(); + return; + } Begin(config); method();