aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Switch.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/Switch.cs')
-rw-r--r--Ryujinx.HLE/Switch.cs17
1 files changed, 3 insertions, 14 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs
index de0f98e4..46af68f4 100644
--- a/Ryujinx.HLE/Switch.cs
+++ b/Ryujinx.HLE/Switch.cs
@@ -32,20 +32,9 @@ namespace Ryujinx.HLE
public Switch(HLEConfiguration configuration)
{
- if (configuration.GpuRenderer == null)
- {
- throw new ArgumentNullException(nameof(configuration.GpuRenderer));
- }
-
- if (configuration.AudioDeviceDriver == null)
- {
- throw new ArgumentNullException(nameof(configuration.AudioDeviceDriver));
- }
-
- if (configuration.UserChannelPersistence == null)
- {
- throw new ArgumentNullException(nameof(configuration.UserChannelPersistence));
- }
+ ArgumentNullException.ThrowIfNull(configuration.GpuRenderer);
+ ArgumentNullException.ThrowIfNull(configuration.AudioDeviceDriver);
+ ArgumentNullException.ThrowIfNull(configuration.UserChannelPersistence);
Configuration = configuration;
FileSystem = Configuration.VirtualFileSystem;