Welcome! Log In Create A New Profile

Advanced

SDL Warning!!!

Posted by mavakadachi 
SDL Warning!!!
April 30, 2009 01:24AM
This little surprise cause me grief to no end. So here is a warning to all of you

Change
if( SDL_Init( SDL_INIT_EVERYTHING ) < 0 )
to
if( SDL_Init( SDL_INIT_EVERYTHING ^ SDL_INIT_CDROM ) < 0 )
OR
if( SDL_Init( what you need. ) < 0 )

when you set the flag SDL_INIT_CDROM SDL_Init will return -1. And in my case (every app in fact) it isnt far enough to see debug messages so you are likely to have no idea why it isnt working.
A solution is to redefine SDL_INIT_EVERYTHING in your SDL headers until this issue is fixed.

I have added an issue in the project -> [code.google.com], [code.google.com]
Sorry, only registered users may post in this forum.

Click here to login