Init question

Hi there,

Well I was looking around SDL_Init and SDL_InitSubSystem, and I wondered why
we couldn’t pass SDL_INIT_NOPARACHUTE to SDL_InitSubSystem.

Actually why parachutes deployment should be only init inside SDL_Init() ?

Is there any reason to this ?

Bye

Sorry if the question has already been asked :confused:

Hi there,

Well I was looking around SDL_Init and SDL_InitSubSystem, and I wondered why
we couldn’t pass SDL_INIT_NOPARACHUTE to SDL_InitSubSystem.

Actually why parachutes deployment should be only init inside SDL_Init() ?

Is there any reason to this ?

The SDL_InitSubSystem() call is an advanced feature, and presumeably
if you are setting everything up yourself you know how to catch and
handle crashes and unexpected exceptions in your program, and don’t
want SDL to hold your hand for you. It’s just designed that way as
a convenience.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I’d always assumed that it had more to do with the fact that it’s
difficult to simply add or remove this sort of hook at will. What I’ve
come to do now is this:

if (COM_CheckParm ("-noparachute"))
{
    sdlflags |= SDL_INIT_NOPARACHUTE;
    Sys_Printf ("Flying without a parachute!\n");
}

SDL_Init (sdlflags);

grumble Must fix +set so I don’t have to use legacy COM_CheckParm…

Anyway, afterward I init subsystems as they’re needed. We need the timer
always and even if we could InitSubsystem the noparachute, that’s where it
would be done anyway.On Sat, Mar 30, 2002 at 07:21:58PM -0800, Sam Lantinga wrote:

Is there any reason to this ?

The SDL_InitSubSystem() call is an advanced feature, and presumeably
if you are setting everything up yourself you know how to catch and
handle crashes and unexpected exceptions in your program, and don’t
want SDL to hold your hand for you. It’s just designed that way as
a convenience.


Joseph Carter Certified free software nut

Hmm… Which would do a better job at driving physicists crazy? Travel
faster than light, or a floating-point boolean value?
– Michael Mol

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020331/a4df68dd/attachment.pgp