diff --git a/MeloNX-XC/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate b/MeloNX-XC/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate index db72fd225..a9951fcac 100644 Binary files a/MeloNX-XC/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate and b/MeloNX-XC/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/MeloNX-XC/MeloNX/ContentView.swift b/MeloNX-XC/MeloNX/ContentView.swift index 4cc494676..079dd0334 100644 --- a/MeloNX-XC/MeloNX/ContentView.swift +++ b/MeloNX-XC/MeloNX/ContentView.swift @@ -62,9 +62,13 @@ func startEmulation(game: URL) { enableKeyboard: false, graphicsBackend: "Vulkan" ) - patchMakeKeyAndVisible() - SDL_SetMainReady() - SDL_iPhoneSetEventPump(SDL_TRUE) + + DispatchQueue.main.async { + patchMakeKeyAndVisible() + SDL_SetMainReady() + SDL_iPhoneSetEventPump(SDL_TRUE) + SDL_Init(SDL_INIT_VIDEO) + } let emulator = RyujinxEmulator() do { try emulator.startWithRunLoop(config: config) diff --git a/MeloNX-XC/MeloNX/Core/Ryujinx.swift b/MeloNX-XC/MeloNX/Core/Ryujinx.swift index 6bf39257f..430ae58cb 100644 --- a/MeloNX-XC/MeloNX/Core/Ryujinx.swift +++ b/MeloNX-XC/MeloNX/Core/Ryujinx.swift @@ -64,10 +64,11 @@ class RyujinxEmulator { args.append(config.inputPath) args.append("--graphics-backend") args.append(config.graphicsBackend) - args.append(contentsOf: ["--memory-manager-mode", "SoftwarePageTable"]) + // args.append(contentsOf: ["--memory-manager-mode", "SoftwarePageTable"]) // args.append(contentsOf: ["--fullscreen", "true"]) args.append(contentsOf: ["--enable-debug-logs", "true"]) args.append(contentsOf: ["--enable-trace-logs", "true"]) + args.append(contentsOf: ["--input-id-1", "1-47150005-05ac-0000-0100-00004f066d01"]) // args.append("--input-path") args.append(contentsOf: config.additionalArgs)