diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-03-20 18:42:13 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-03-20 18:42:13 -0300 |
| commit | d4a3e8267bddc5bf8ad2eb1e76b2ef15d4cbda2c (patch) | |
| tree | a61169a27806d8a9e48a55fc4431c7fb60a877ac /Ryujinx.Core/Config.cs | |
| parent | e922c3627a789a86747fda6f42425b40c56182df (diff) | |
Allow enabling/disabling memory checks on config file
Diffstat (limited to 'Ryujinx.Core/Config.cs')
| -rw-r--r-- | Ryujinx.Core/Config.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Core/Config.cs b/Ryujinx.Core/Config.cs index c9a76de3..1e1cb3c7 100644 --- a/Ryujinx.Core/Config.cs +++ b/Ryujinx.Core/Config.cs @@ -9,6 +9,7 @@ namespace Ryujinx.Core { public static class Config { + public static bool EnableMemoryChecks { get; private set; } public static bool LoggingEnableInfo { get; private set; } public static bool LoggingEnableTrace { get; private set; } public static bool LoggingEnableDebug { get; private set; } @@ -26,6 +27,7 @@ namespace Ryujinx.Core var iniPath = Path.Combine(iniFolder, "Ryujinx.conf"); IniParser Parser = new IniParser(iniPath); + EnableMemoryChecks = Convert.ToBoolean(Parser.Value("Enable_Memory_Checks")); LoggingEnableInfo = Convert.ToBoolean(Parser.Value("Logging_Enable_Info")); LoggingEnableTrace = Convert.ToBoolean(Parser.Value("Logging_Enable_Trace")); LoggingEnableDebug = Convert.ToBoolean(Parser.Value("Logging_Enable_Debug")); |
