Skip to content

Commit 486ba0d

Browse files
committed
Simplify unused out param and fix unreachable code warning
1 parent b2e7dd1 commit 486ba0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BizHawk.BizInvoke/BizExvoker.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public DelegateStorage(Type type)
6767

6868
foreach (var (Info, Attr) in methods)
6969
{
70-
var delegateType = BizInvokeUtilities.CreateDelegateType(Info, Attr!.CallingConvention, typeBuilder, out MethodBuilder unused).CreateType()!;
70+
var delegateType = BizInvokeUtilities.CreateDelegateType(Info, Attr!.CallingConvention, typeBuilder, out _).CreateType()!;
7171
DelegateTypes.Add(new StoredDelegateInfo(Info, delegateType, Attr.EntryPoint ?? Info.Name));
7272
}
7373
StorageType = typeBuilder.CreateType()!;

src/BizHawk.Emulation.Cores/Consoles/Nintendo/3DS/Citra.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public Citra(CoreLoadParameters<CitraSettings, CitraSyncSettings> lp)
6767
_supportsOpenGL43 = _openGLProvider.SupportsGLVersion(4, 3);
6868
if (!_supportsOpenGL43/* && _syncSettings.GraphicsApi == CitraSyncSettings.EGraphicsApi.OpenGL*/)
6969
{
70+
lp.Comm.Notify("OpenGL 4.3 is not supported on this machine, falling back to software renderer", null);
7071
throw new("OpenGL 4.3 is required, but it is not supported on this machine");
71-
// lp.Comm.Notify("OpenGL 4.3 is not supported on this machine, falling back to software renderer", null);
7272
}
7373

7474
_glCallbackInterface.RequestGLContext = RequestGLContextCallback;

0 commit comments

Comments
 (0)