From 98c9f3ccb8ca2acc121b748d7be399e695069821 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Tue, 31 Dec 2024 14:33:28 -0500 Subject: [PATCH] Xbox now prefers the SDL3 backend --- docs/appendix/Appendix-B:-FNA-on-Consoles.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/appendix/Appendix-B:-FNA-on-Consoles.md b/docs/appendix/Appendix-B:-FNA-on-Consoles.md index 71a4418..61b939c 100644 --- a/docs/appendix/Appendix-B:-FNA-on-Consoles.md +++ b/docs/appendix/Appendix-B:-FNA-on-Consoles.md @@ -96,9 +96,10 @@ Your code should be able to stay the same except for the Main function: static void Main(string[] args) #if GDK { + Environment.SetEnvironmentVariable("FNA_PLATFORM_BACKEND", "SDL3"); realArgs = args; - SDL2.SDL.SDL_main_func mainFunction = FakeMain; - SDL2.SDL.SDL_GDKRunApp(mainFunction, IntPtr.Zero); + SDL3.SDL.SDL_main_func mainFunction = FakeMain; + SDL3.SDL.SDL_RunApp(0, IntPtr.Zero, mainFunction, IntPtr.Zero); } static string[] realArgs;