Shell Script Help


charlieb

Member
Joined
Nov 30, 2006
Messages
116
I've been doing some work on my cube shooter game and I re-arranged the files a little bit. I have a shell script in the project root directory that looks like this:

#------------------------
#!/bin/sh

bin/wire3d_gp2x -l data/level > output

# return to the menu screen
cd /usr/gp2x
sync
exec /usr/gp2x/gp2xmenu
#------------------------

but when I run it like this it crashes during sdl initialization.
When I run it directly "./wire3d_gp2x -l ../data/level" there are no problems.

Any ideas?
You can get the problematic program package here and the (darcs get-able or browsable) source is here

Thanks,
charlieb
 
Back
Top