----- Original Message ----- From: "Ari Johnson" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, September 24, 2006 3:29 AM
Subject: [Warzone-dev] Mac crash in r391


Something that changed between r390 and r391 causes the game to crash
before showing the splash screen on Macs.  As this was a massive,
mostly-header-file update, I am not sure what's going on.

The crash occurs on the call to SDL_SetVideoMode in screen.c, line 166.

Some research indicates that the problem is caused by the
<SDL/SDL_main.h> file doing some magic to main() on MacOS.  Including
<SDL/SDL_main.h> in lib/ivis_opengl/screen.h (which main.c includes
with a big FIXME complaining about it) fixes the crash.

I know that we are not fond of putting an SDL include in main.c, but
somehow <SDL/SDL_main.h> must be included by the file containing the
main() function.  Are there any proposals to deal with this?

Ari

P.S. On a side note, I get an error about 'Texture file "frend4.png"
not preloaded.' and have been getting it for a while.  I don't know
why this is given that it is referenced by frontend.wrf, but it does
seem to cause some front-end icons to be messed up. (The icon for
humans-against-AI, for instance, is a 19200-baud modem icon.)

A reference to frend4.png is added by me, we need some room for new textures. As to how to solve your problem, can you check if you have "frend4.png" in "data/images" directory? Does "frend4.png is not preloaded" (r387 should have actually fixed it) error occurs when you load the skirmish options screen?

I also seem to have some problems, i'm getting quite a lot errors when trying to compile with MSVC (problem with BLOCK_HEAP in block.c, some redefinition etc).

Troman

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to