GLBasic forum

Main forum => Bug Reports => Topic started by: 9940 on 2009-Jul-15

Title: gp2x wiz END bug
Post by: 9940 on 2009-Jul-15
If you write a simple program for your wiz (firmware 1.1.0) like this...

Code (glbasic) Select

END


... and you run it more than one times, second time (without turning off your Wiz in the meantime) exiting the program again
will freeze your system and your only option is to turn off the Wiz !   
:help:

EDIT:
Other non glbasic games haven't this problem
Title: Re: gp2x wiz END bug
Post by: Ian Price on 2009-Jul-15
This is a known problem, no matter how you end a GLB program on the Wiz.
Title: Re: gp2x wiz END bug
Post by: Kitty Hello on 2009-Jul-16
I fixed that yesterday night. So V7 will not suffer from this.

The solution is to have a script (gp2x.gpe) that calls (depending on the existance of /sys) either the gp2x.prg or the gp2xwiz.prg file.

V7 will introduce an ".app" directory mechanism that will do all this for you.
Title: Re: gp2x wiz END bug
Post by: 9940 on 2009-Jul-17
Can you post the script ?
Title: Re: gp2x wiz END bug
Post by: Kitty Hello on 2009-Jul-17
will be in V7
Code (glbasic) Select
#!/bin/sh

if [ -e /sys ]
then
    ./gp2xwiz.prg
else
    ./gp2x.prg
fi

cd /usr/gp2x
./gp2xmenu

\n as line endings (unix)
Title: Re: gp2x wiz END bug
Post by: 9940 on 2009-Jul-17
Thanks !
Title: Re: gp2x wiz END bug
Post by: 9940 on 2009-Jul-17
However can you make an option to disable any gp2xmenu integration in project options?
This because i'm writing a prg which runs other app and if the menu show it cover the other apps...
Title: Re: gp2x wiz END bug
Post by: Kitty Hello on 2009-Jul-20
V7 will create a gp2x.gpe file, that's a simple text file. Edit to your needs.