cd /usr/gp2x/
./gp2xmenu
Use exec ./gp2xmenu
Without exec you're leaking memory.
Because if you just use ./gp2xmenu, then the shell script never exits. It waits for gp2xmenu to quit before exiting, and then you go in, start another game, and that game's script calls ./gp2xmenu, and now thatinstance of gp2xmenu is waiting for the script to finish, and so on, so forth. It can take a while, but eventually you'll lock up your 2x this way. Using exec on the other hand tells the script to not wait for gp2xmenu to be terminated before continuing, so it starts gp2xmenu and goes onto the next part of the script, which is the end in this case. There was a thread about this a while back, but I'm too lazy to dig it up.cd /usr/gp2x/
./gp2xmenu
Use exec ./gp2xmenu
Without exec you're leaking memory.
Why is it leaking memory?
I have seen may apps and all use exec ./gp2xmenu, I'd like to know why, and what's wrong with that...
I've manually edited the gpe file, and put the exec line, hope this is a better way to quit the application...
Because if you just use ./gp2xmenu, then the shell script never exits. It waits for gp2xmenu to quit before exiting, and then you go in, start another game, and that game's script calls ./gp2xmenu, and now thatinstance of gp2xmenu is waiting for the script to finish, and so on, so forth. It can take a while, but eventually you'll lock up your 2x this way. Using exec on the other hand tells the script to not wait for gp2xmenu to be terminated before continuing, so it starts gp2xmenu and goes onto the next part of the script, which is the end in this case. There was a thread about this a while back, but I'm too lazy to dig it up.
#!/bin/bash
./prboom -iwad doom.wad > prboom.log.txt 2>&1
sync
cd /usr/gp2x/
exec ./gp2xmenu
#!/bin/bash
./prboom -iwad doom2.wad > prboomDoom2.log.txt 2>&1
sync
cd /usr/gp2x/
exec ./gp2xmenu
Russ Meyer posted on Feb 1 2006 at 08:43 PM said:Is there any way to enable "run" , I can't seem to jump the gap to get the red key in level 2 of Doom2.
Ravnos posted on Feb 1 2006 at 07:48 PM said:Russ Meyer posted on Feb 1 2006 at 08:43 PM said:Is there any way to enable "run" , I can't seem to jump the gap to get the red key in level 2 of Doom2.
You have to map a key to it. I got rid of the "preferred weapon" button for it, and then re-ordered them all. You can do this in the game's menu.
Hey, I have found a little bug. On this and early version of prboom, if you catch a sphere (invisibility or blue one) or a scubbo suit, the game crashes.
I have tried only on Doom I.
Does anyone have notice this issue too?