rokdcasbah
got me a date with botticelli's niece
Couple things:
1. I apologize if this has been covered before. I've never seen it done (though I'm sure it's common knowledge to some of you) and I can't think of a good way to search for it.
2. I wasn't sure if it belongs in Cool Ideas, since that's mostly port requests, but I won't be crushed if anyone moves it there.
3. You don't have to be using gmenu or dosbox to do this, it should work with kounch's selector app too, as well as anything similar.
--
I got the urge to play around with gmenu, to see if you could use it's selector to load apps in a list style rather than using the icons. This would be especially nice for dosbox since so far the most obvious way to sort dosbox launchers is to give them their own folder in gmenu and use an icon for each. OK, so the following script isn't going to change anyone's lives but:
CODE
#!/bin/sh
$1
Explanation: $n is a shell script variable that stores any argument passed to the script, with $1 being the first, $2 being second, etc. Selector, and gmenu's selector, is just a quick way to add arguments to something about to be executed, since the gp2x has no keyboard.
Instructions: take the above and save it as a script, in a good text editor that will do Unix-style line endings. Make an icon for it in gmenu. For "selector dir", you will want a directory full of whatever .gpe files you were previously using to launch dosbox games. Now you can browse your dosbox games in style, with nice screenshots or box art. B)
I didn't test it other than to make sure the gp2x doesn't do anything funny with $1, etc, so I don't know how it affects overclocking and such. My guess is that if you set the overclock in gmenu, it will stick, unless dosbox is setting its own. You can always script this using the cpu-lcd-ram tweaker, as well.Big gotcha: this does not work with spaces in the filenames. I tried to remedy this, but it seems like even though you can type in filenames with spaces and be ok (either by escaping or using quotes), if you try to do it using a variable, it chokes on the space. I won't show my sed 'code' for fear it ends up on thedailywtf.
But maybe some nice person will show us how you'd fix that?
Again, sorry if this has been talked about before.
Like Ryo says below, put quotes around $1.
1. I apologize if this has been covered before. I've never seen it done (though I'm sure it's common knowledge to some of you) and I can't think of a good way to search for it.
2. I wasn't sure if it belongs in Cool Ideas, since that's mostly port requests, but I won't be crushed if anyone moves it there.
3. You don't have to be using gmenu or dosbox to do this, it should work with kounch's selector app too, as well as anything similar.
--
I got the urge to play around with gmenu, to see if you could use it's selector to load apps in a list style rather than using the icons. This would be especially nice for dosbox since so far the most obvious way to sort dosbox launchers is to give them their own folder in gmenu and use an icon for each. OK, so the following script isn't going to change anyone's lives but:
CODE
#!/bin/sh
$1
Explanation: $n is a shell script variable that stores any argument passed to the script, with $1 being the first, $2 being second, etc. Selector, and gmenu's selector, is just a quick way to add arguments to something about to be executed, since the gp2x has no keyboard.
Instructions: take the above and save it as a script, in a good text editor that will do Unix-style line endings. Make an icon for it in gmenu. For "selector dir", you will want a directory full of whatever .gpe files you were previously using to launch dosbox games. Now you can browse your dosbox games in style, with nice screenshots or box art. B)
I didn't test it other than to make sure the gp2x doesn't do anything funny with $1, etc, so I don't know how it affects overclocking and such. My guess is that if you set the overclock in gmenu, it will stick, unless dosbox is setting its own. You can always script this using the cpu-lcd-ram tweaker, as well.
But maybe some nice person will show us how you'd fix that?
Again, sorry if this has been talked about before.
Like Ryo says below, put quotes around $1.