mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-30 15:19:02 +02:00
Use the new C# 14 null propagation setter
This commit is contained in:
@@ -58,10 +58,7 @@ namespace Ryujinx.Memory.Tracking
|
||||
{
|
||||
foreach (var handle in _handles)
|
||||
{
|
||||
if (handle != null)
|
||||
{
|
||||
handle?.RegisterAction((_, _) => action(handle.Address, handle.Size));
|
||||
}
|
||||
handle?.RegisterAction((_, _) => action(handle.Address, handle.Size));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,10 +66,7 @@ namespace Ryujinx.Memory.Tracking
|
||||
{
|
||||
foreach (var handle in _handles)
|
||||
{
|
||||
if (handle != null)
|
||||
{
|
||||
handle?.RegisterPreciseAction((_, _, write) => action(handle.Address, handle.Size, write));
|
||||
}
|
||||
handle?.RegisterPreciseAction((_, _, write) => action(handle.Address, handle.Size, write));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user