Skip to content
Permalink
Browse files

Cleaned up debug code for loading SDL2.

  • Loading branch information
icculus committed Feb 21, 2019
1 parent 4c5e3b2 commit 0559065b5af854611309bf0dee9cc0d80ae9eb46
Showing with 9 additions and 5 deletions.
  1. +9 −5 src/SDL12_compat.c
@@ -772,12 +772,16 @@ static void *
LoadSDL20Symbol(const char *fn, int *okay)
{
void *retval = NULL;
if (*okay) /* only bother trying if we haven't previously failed. */
{
if (*okay) { /* only bother trying if we haven't previously failed. */
retval = LookupSDL20Sym(fn);
if (!retval) { fprintf(stderr, "WARNING: LOAD FAILED: %s\n", fn); }
// if (retval == NULL)
// *okay = 0;
if (retval == NULL) {
/* Flip to 1 to warn but maybe work if nothing calls that function, flip to zero to fail out. */
#if 0
fprintf(stderr, "WARNING: LOAD FAILED: %s\n", fn);
#else
*okay = 0;
#endif
}
}
return retval;
}

0 comments on commit 0559065

Please sign in to comment.