1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-23 20:36:03 +00:00

Null operators

This commit is contained in:
Isaac Marovitz 2024-04-19 16:39:03 -04:00
parent 2e48ef62fa
commit 2d399b6d26
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -169,9 +169,9 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings
private readonly SettingsAudioViewModel _audioViewModel; private readonly SettingsAudioViewModel _audioViewModel;
private readonly SettingsCpuViewModel _cpuViewModel; private readonly SettingsCpuViewModel _cpuViewModel;
private readonly SettingsGraphicsViewModel _graphicsViewModel; private readonly SettingsGraphicsViewModel _graphicsViewModel;
private readonly SettingsLoggingViewModel _loggingViewModel;
private readonly SettingsInputViewModel _inputViewModel;
private readonly SettingsHotkeysViewModel _hotkeysViewModel; private readonly SettingsHotkeysViewModel _hotkeysViewModel;
private readonly SettingsInputViewModel _inputViewModel;
private readonly SettingsLoggingViewModel _loggingViewModel;
public DateTimeOffset CurrentDate { get; set; } public DateTimeOffset CurrentDate { get; set; }
public TimeSpan CurrentTime { get; set; } public TimeSpan CurrentTime { get; set; }
@ -285,39 +285,17 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings
isDirty |= config.System.ExpandRam.Value != ExpandDramSize; isDirty |= config.System.ExpandRam.Value != ExpandDramSize;
isDirty |= config.System.IgnoreMissingServices.Value != IgnoreMissingServices; isDirty |= config.System.IgnoreMissingServices.Value != IgnoreMissingServices;
if (_audioViewModel != null) isDirty |= _audioViewModel?.CheckIfModified(config) ?? false;
{ isDirty |= _cpuViewModel?.CheckIfModified(config) ?? false;
isDirty |= _audioViewModel.CheckIfModified(config); isDirty |= _graphicsViewModel?.CheckIfModified(config) ?? false;
} isDirty |= _hotkeysViewModel?.CheckIfModified(config) ?? false;
if (_cpuViewModel != null)
{
isDirty |= _cpuViewModel.CheckIfModified(config);
}
if (_graphicsViewModel != null)
{
isDirty |= _graphicsViewModel.CheckIfModified(config);
}
if (_hotkeysViewModel != null)
{
isDirty |= _hotkeysViewModel.CheckIfModified(config);
}
if (_inputViewModel != null)
{
// TODO: IMPLEMENT THIS!! // TODO: IMPLEMENT THIS!!
// isDirty |= _inputViewModel.CheckIfModified(config); // isDirty |= _inputViewModel?.CheckIfModified(config) ?? false;
}
// Network // Network
isDirty |= config.System.EnableInternetAccess.Value != EnableInternetAccess; isDirty |= config.System.EnableInternetAccess.Value != EnableInternetAccess;
if (_loggingViewModel != null) isDirty |= _loggingViewModel?.CheckIfModified(config) ?? false;
{
isDirty |= _loggingViewModel.CheckIfModified(config);
}
isDirty |= config.Multiplayer.LanInterfaceId.Value != _networkInterfaces[NetworkInterfaceList[NetworkInterfaceIndex]]; isDirty |= config.Multiplayer.LanInterfaceId.Value != _networkInterfaces[NetworkInterfaceList[NetworkInterfaceIndex]];
isDirty |= config.Multiplayer.Mode.Value != (MultiplayerMode)MultiplayerModeIndex; isDirty |= config.Multiplayer.Mode.Value != (MultiplayerMode)MultiplayerModeIndex;