diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-04-04 09:06:59 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-04 14:06:59 +0200 |
| commit | 874540bb5c1c5737bc9b0bfdc96fe1cf12ff164d (patch) | |
| tree | 68582881e7f4965d7e0938020a9f5dd1773f070a /Ryujinx.Common | |
| parent | 3bc107d491745a0d1f18e48d8c6c0f74565ae633 (diff) | |
Allow DRAM size to be increased from 4GB to 6GB (#2174)
* Allow DRAM size to be increased from 4GB to 6GB
* Add option on the UI
Diffstat (limited to 'Ryujinx.Common')
| -rw-r--r-- | Ryujinx.Common/Configuration/ConfigurationFileFormat.cs | 7 | ||||
| -rw-r--r-- | Ryujinx.Common/Configuration/ConfigurationState.cs | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/Ryujinx.Common/Configuration/ConfigurationFileFormat.cs b/Ryujinx.Common/Configuration/ConfigurationFileFormat.cs index 901c823e..32e76375 100644 --- a/Ryujinx.Common/Configuration/ConfigurationFileFormat.cs +++ b/Ryujinx.Common/Configuration/ConfigurationFileFormat.cs @@ -14,7 +14,7 @@ namespace Ryujinx.Configuration /// <summary> /// The current version of the file format /// </summary> - public const int CurrentVersion = 22; + public const int CurrentVersion = 23; public int Version { get; set; } @@ -174,6 +174,11 @@ namespace Ryujinx.Configuration public AudioBackend AudioBackend { get; set; } /// <summary> + /// Expands the RAM amount on the emulated system from 4GB to 6GB + /// </summary> + public bool ExpandRam { get; set; } + + /// <summary> /// Enable or disable ignoring missing services /// </summary> public bool IgnoreMissingServices { get; set; } diff --git a/Ryujinx.Common/Configuration/ConfigurationState.cs b/Ryujinx.Common/Configuration/ConfigurationState.cs index d51ee9ef..e257fa23 100644 --- a/Ryujinx.Common/Configuration/ConfigurationState.cs +++ b/Ryujinx.Common/Configuration/ConfigurationState.cs @@ -219,6 +219,11 @@ namespace Ryujinx.Configuration public ReactiveObject<AudioBackend> AudioBackend { get; private set; } /// <summary> + /// Defines the amount of RAM available on the emulated system, and how it is distributed + /// </summary> + public ReactiveObject<bool> ExpandRam { get; private set; } + + /// <summary> /// Enable or disable ignoring missing services /// </summary> public ReactiveObject<bool> IgnoreMissingServices { get; private set; } @@ -234,6 +239,7 @@ namespace Ryujinx.Configuration EnableFsIntegrityChecks = new ReactiveObject<bool>(); FsGlobalAccessLogMode = new ReactiveObject<int>(); AudioBackend = new ReactiveObject<AudioBackend>(); + ExpandRam = new ReactiveObject<bool>(); IgnoreMissingServices = new ReactiveObject<bool>(); } } @@ -433,6 +439,7 @@ namespace Ryujinx.Configuration EnableFsIntegrityChecks = System.EnableFsIntegrityChecks, FsGlobalAccessLogMode = System.FsGlobalAccessLogMode, AudioBackend = System.AudioBackend, + ExpandRam = System.ExpandRam, IgnoreMissingServices = System.IgnoreMissingServices, GuiColumns = new GuiColumns { @@ -497,6 +504,7 @@ namespace Ryujinx.Configuration System.EnableFsIntegrityChecks.Value = true; System.FsGlobalAccessLogMode.Value = 0; System.AudioBackend.Value = AudioBackend.OpenAl; + System.ExpandRam.Value = false; System.IgnoreMissingServices.Value = false; Ui.GuiColumns.FavColumn.Value = true; Ui.GuiColumns.IconColumn.Value = true; @@ -838,6 +846,7 @@ namespace Ryujinx.Configuration System.EnableFsIntegrityChecks.Value = configurationFileFormat.EnableFsIntegrityChecks; System.FsGlobalAccessLogMode.Value = configurationFileFormat.FsGlobalAccessLogMode; System.AudioBackend.Value = configurationFileFormat.AudioBackend; + System.ExpandRam.Value = configurationFileFormat.ExpandRam; System.IgnoreMissingServices.Value = configurationFileFormat.IgnoreMissingServices; Ui.GuiColumns.FavColumn.Value = configurationFileFormat.GuiColumns.FavColumn; Ui.GuiColumns.IconColumn.Value = configurationFileFormat.GuiColumns.IconColumn; |
