upgrade these for c#10
This commit is contained in:
parent
19443040c4
commit
1575949762
|
@ -13,8 +13,7 @@ namespace BizHawk.Bizware.Graphics
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class OpenGLVersion
|
public static class OpenGLVersion
|
||||||
{
|
{
|
||||||
// TODO: make this a ref struct once we're c# 10 (parameterless struct ctor)
|
private readonly ref struct SavedOpenGLContext
|
||||||
private class SavedOpenGLContext : IDisposable
|
|
||||||
{
|
{
|
||||||
private readonly IntPtr _sdlWindow, _glContext;
|
private readonly IntPtr _sdlWindow, _glContext;
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ namespace BizHawk.Common
|
||||||
{
|
{
|
||||||
var uri = new Uri(path);
|
var uri = new Uri(path);
|
||||||
|
|
||||||
// gongshell supported shell schemes, although that seems complicated to support and very edge case, so not bothering for now --cpp
|
// this should be the only scheme used in practice
|
||||||
if (uri.Scheme != "file")
|
if (uri.Scheme != "file")
|
||||||
{
|
{
|
||||||
throw new NotSupportedException("Non-file Uri schemes are unsupported");
|
throw new NotSupportedException("Non-file Uri schemes are unsupported");
|
||||||
|
@ -264,8 +264,7 @@ namespace BizHawk.Common
|
||||||
ComInterface2 = (IContextMenu2)ComInterface;
|
ComInterface2 = (IContextMenu2)ComInterface;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: ref struct when c# 10
|
private ref struct TempMenu
|
||||||
private class TempMenu : IDisposable
|
|
||||||
{
|
{
|
||||||
[DllImport("user32.dll")]
|
[DllImport("user32.dll")]
|
||||||
private static extern IntPtr CreatePopupMenu();
|
private static extern IntPtr CreatePopupMenu();
|
||||||
|
|
Loading…
Reference in New Issue