mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 03:16:23 +02:00
Add Exit Emulation (broken)
This commit is contained in:
parent
438c1a896f
commit
2e6e4eb2a0
6 changed files with 74 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue