Skip to content

Commit

Permalink
Xbox now prefers the SDL3 backend
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored Dec 31, 2024
1 parent 24698bd commit 98c9f3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/appendix/Appendix-B:-FNA-on-Consoles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 98c9f3c

Please sign in to comment.