mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 10:33:05 +00:00
Null operators
This commit is contained in:
parent
2e48ef62fa
commit
2d399b6d26
1 changed files with 9 additions and 31 deletions
|
@ -169,9 +169,9 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings
|
|||
private readonly SettingsAudioViewModel _audioViewModel;
|
||||
private readonly SettingsCpuViewModel _cpuViewModel;
|
||||
private readonly SettingsGraphicsViewModel _graphicsViewModel;
|
||||
private readonly SettingsLoggingViewModel _loggingViewModel;
|
||||
private readonly SettingsInputViewModel _inputViewModel;
|
||||
private readonly SettingsHotkeysViewModel _hotkeysViewModel;
|
||||
private readonly SettingsInputViewModel _inputViewModel;
|
||||
private readonly SettingsLoggingViewModel _loggingViewModel;
|
||||
|
||||
public DateTimeOffset CurrentDate { 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.IgnoreMissingServices.Value != IgnoreMissingServices;
|
||||
|
||||
if (_audioViewModel != null)
|
||||
{
|
||||
isDirty |= _audioViewModel.CheckIfModified(config);
|
||||
}
|
||||
|
||||
if (_cpuViewModel != null)
|
||||
{
|
||||
isDirty |= _cpuViewModel.CheckIfModified(config);
|
||||
}
|
||||
|
||||
if (_graphicsViewModel != null)
|
||||
{
|
||||
isDirty |= _graphicsViewModel.CheckIfModified(config);
|
||||
}
|
||||
|
||||
if (_hotkeysViewModel != null)
|
||||
{
|
||||
isDirty |= _hotkeysViewModel.CheckIfModified(config);
|
||||
}
|
||||
|
||||
if (_inputViewModel != null)
|
||||
{
|
||||
isDirty |= _audioViewModel?.CheckIfModified(config) ?? false;
|
||||
isDirty |= _cpuViewModel?.CheckIfModified(config) ?? false;
|
||||
isDirty |= _graphicsViewModel?.CheckIfModified(config) ?? false;
|
||||
isDirty |= _hotkeysViewModel?.CheckIfModified(config) ?? false;
|
||||
// TODO: IMPLEMENT THIS!!
|
||||
// isDirty |= _inputViewModel.CheckIfModified(config);
|
||||
}
|
||||
// isDirty |= _inputViewModel?.CheckIfModified(config) ?? false;
|
||||
|
||||
// Network
|
||||
isDirty |= config.System.EnableInternetAccess.Value != EnableInternetAccess;
|
||||
|
||||
if (_loggingViewModel != null)
|
||||
{
|
||||
isDirty |= _loggingViewModel.CheckIfModified(config);
|
||||
}
|
||||
isDirty |= _loggingViewModel?.CheckIfModified(config) ?? false;
|
||||
|
||||
isDirty |= config.Multiplayer.LanInterfaceId.Value != _networkInterfaces[NetworkInterfaceList[NetworkInterfaceIndex]];
|
||||
isDirty |= config.Multiplayer.Mode.Value != (MultiplayerMode)MultiplayerModeIndex;
|
||||
|
|
Loading…
Reference in a new issue