Author Topic: gp2x wiz END bug  (Read 3216 times)

9940

  • Guest
gp2x wiz END bug
« 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
« Last Edit: 2009-Jul-15 by 9940 »

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4159
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: gp2x wiz END bug
« Reply #1 on: 2009-Jul-15 »
This is a known problem, no matter how you end a GLB program on the Wiz.
I came. I saw. I played.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10815
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: gp2x wiz END bug
« Reply #2 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.

9940

  • Guest
Re: gp2x wiz END bug
« Reply #3 on: 2009-Jul-17 »
Can you post the script ?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10815
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: gp2x wiz END bug
« Reply #4 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)

9940

  • Guest
Re: gp2x wiz END bug
« Reply #5 on: 2009-Jul-17 »
Thanks !

9940

  • Guest
Re: gp2x wiz END bug
« Reply #6 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...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10815
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: gp2x wiz END bug
« Reply #7 on: 2009-Jul-20 »
V7 will create a gp2x.gpe file, that's a simple text file. Edit to your needs.