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