Skip to content

Commit

Permalink
[Nokia N-Gage] Add platform to SDL.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mupfdev committed Feb 1, 2025
1 parent d32ef77 commit c252e1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ SDL_COMPILE_TIME_ASSERT(SDL_MICRO_VERSION_max, SDL_MICRO_VERSION <= 999);
extern SDL_NORETURN void SDL_ExitProcess(int exitcode);
SDL_NORETURN void SDL_ExitProcess(int exitcode)
{
#if defined(SDL_PLATFORM_WINDOWS)
#if defined(SDL_PLATFORM_NGAGE)
extern void NGAGE_ExitApp(int exitcode);
NGAGE_ExitApp(exitcode);
#elif defined(SDL_PLATFORM_WINDOWS)
/* "if you do not know the state of all threads in your process, it is
better to call TerminateProcess than ExitProcess"
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682658(v=vs.85).aspx */
Expand Down Expand Up @@ -714,6 +717,8 @@ const char *SDL_GetPlatform(void)
return "macOS";
#elif defined(SDL_PLATFORM_NETBSD)
return "NetBSD";
#elif defined(SDL_PLATFORM_NGAGE)
return "Nokia N-Gage";
#elif defined(SDL_PLATFORM_OPENBSD)
return "OpenBSD";
#elif defined(SDL_PLATFORM_OS2)
Expand Down

0 comments on commit c252e1f

Please sign in to comment.