Add Exit Emulation (broken)

This commit is contained in:
Stossy11 2024-12-19 12:43:20 +11:00
parent 438c1a896f
commit 2e6e4eb2a0
6 changed files with 74 additions and 10 deletions

View file

@ -93,6 +93,7 @@ using Silk.NET.Vulkan;
using System;
using System.IO;
using System.Runtime.InteropServices;
using SDL2;
public class GamepadInfo
{
@ -288,6 +289,21 @@ namespace Ryujinx.Headless.SDL2
return String.Empty;
}
[UnmanagedCallersOnly(EntryPoint = "stop_emulation")]
public static void StopEmulation()
{
if (_window != null)
{
_window.Exit();
_emulationContext.Dispose();
_emulationContext = null;
}
}
[UnmanagedCallersOnly(EntryPoint = "get_game_controllers")]
public static unsafe IntPtr GetGamepadList()