Skip to content

Commit

Permalink
log: Add Xbox debugPrint()
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed Jan 12, 2020
1 parent 4871260 commit 96d42cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SDL_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#include "core/windows/SDL_windows.h"
#endif

#if defined(__XBOX__)
#include <hal/debug.h>
#endif

/* Simple log messages in SDL */

#include "SDL_error.h"
Expand Down Expand Up @@ -393,6 +397,10 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
SDL_free(tstr);
SDL_small_free(output, isstack);
}
#elif defined(__XBOX__)
{
debugPrint("%s: %s\n", SDL_priority_prefixes[priority], message);
}
#elif defined(__ANDROID__)
{
char tag[32];
Expand Down

0 comments on commit 96d42cf

Please sign in to comment.