diff options
Diffstat (limited to 'Ryujinx.Graphics.Device')
| -rw-r--r-- | Ryujinx.Graphics.Device/DeviceState.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Device/DeviceState.cs b/Ryujinx.Graphics.Device/DeviceState.cs index ea6942ec..740d8589 100644 --- a/Ryujinx.Graphics.Device/DeviceState.cs +++ b/Ryujinx.Graphics.Device/DeviceState.cs @@ -90,14 +90,12 @@ namespace Ryujinx.Graphics.Device { int alignedOffset = Align(offset); + GetRef<int>(alignedOffset) = data; + if (_writeCallbacks.TryGetValue(alignedOffset, out Action<int> write)) { write(data); } - else - { - GetRef<int>(alignedOffset) = data; - } } } |
