mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-01-19 17:10:12 +00: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:
parent
9c0dbb9c07
commit
08d13355ee
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue