mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-29 11:10:47 -07:00
Apply suggestions from code review
Address LDj3SNuD's feedback Co-authored-by: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>
This commit is contained in:
@ -40,7 +40,7 @@ namespace ARMeilleure.Common
|
|||||||
/// Gets a reference to the value of the counter.
|
/// Gets a reference to the value of the counter.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="ObjectDisposedException"><see cref="Counter{T}"/> instance was disposed</exception>
|
/// <exception cref="ObjectDisposedException"><see cref="Counter{T}"/> instance was disposed</exception>
|
||||||
public ref T Value
|
public ref T Value
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
@ -49,7 +49,7 @@ namespace ARMeilleure.Common
|
|||||||
throw new ObjectDisposedException(null);
|
throw new ObjectDisposedException(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ref _countTable.GetValue(_index);
|
return ref _countTable.GetValue(_index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,8 +218,7 @@ namespace ARMeilleure.Instructions
|
|||||||
{
|
{
|
||||||
context.StoreToContext();
|
context.StoreToContext();
|
||||||
|
|
||||||
Operand fallbackAddr = context.Call(
|
Operand fallbackAddr = context.Call(typeof(NativeInterface).GetMethod(nameof(NativeInterface.GetFunctionAddress)), address);
|
||||||
typeof(NativeInterface).GetMethod(nameof(NativeInterface.GetFunctionAddress)), address);
|
|
||||||
|
|
||||||
EmitNativeCall(context, fallbackAddr, isJump: true);
|
EmitNativeCall(context, fallbackAddr, isJump: true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user