|
@@ -210,6 +210,17 @@ namespace Ryujinx.Graphics.Gpu.State
|
|
|
_registers[(int)offset].Callback = callback;
|
|
_registers[(int)offset].Callback = callback;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// Clear all registered callbacks.
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public void ClearCallbacks()
|
|
|
|
|
+ {
|
|
|
|
|
+ for (int index = 0; index < _registers.Length; index++)
|
|
|
|
|
+ {
|
|
|
|
|
+ _registers[index].Callback = null;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Checks if a given register has been modified since the last call to this method.
|
|
/// Checks if a given register has been modified since the last call to this method.
|
|
|
/// </summary>
|
|
/// </summary>
|