Emulation.Common - small nitpicks
This commit is contained in:
parent
4c313e2a6a
commit
d320b5057d
|
@ -110,6 +110,7 @@ namespace BizHawk.Emulation.Common
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// big hacks
|
/// big hacks
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <typeparam name="T">The memory domain type to merge</typeparam>
|
||||||
private static void TryMerge<T>(MemoryDomain dest, MemoryDomain src, Action<T, T> func)
|
private static void TryMerge<T>(MemoryDomain dest, MemoryDomain src, Action<T, T> func)
|
||||||
where T : MemoryDomain
|
where T : MemoryDomain
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,6 +58,7 @@ namespace BizHawk.Emulation.Common.BizInvoke
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// get an implementation proxy for an interop class
|
/// get an implementation proxy for an interop class
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <typeparam name="T">The class type that represents the DLL</typeparam>
|
||||||
public static T GetInvoker<T>(IImportResolver dll)
|
public static T GetInvoker<T>(IImportResolver dll)
|
||||||
where T : class
|
where T : class
|
||||||
{
|
{
|
||||||
|
|
|
@ -242,8 +242,8 @@ namespace BizHawk.Emulation.Common
|
||||||
int outNum = end - cur;
|
int outNum = end - cur;
|
||||||
int denom = end - start;
|
int denom = end - start;
|
||||||
|
|
||||||
int lrv = ((int)lhs.L * outNum + (int)rhs.L * inNum) / denom;
|
int lrv = ((lhs.L * outNum) + (rhs.L * inNum)) / denom;
|
||||||
int rrv = ((int)lhs.R * outNum + (int)rhs.R * inNum) / denom;
|
int rrv = ((lhs.R * outNum) + (rhs.R * inNum)) / denom;
|
||||||
|
|
||||||
return new Ssamp((short)lrv, (short)rrv);
|
return new Ssamp((short)lrv, (short)rrv);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue