GP2X Bastardshell 0.1


no_skill

gp2x! bananas! mayhem! mayham!
Joined
Jan 9, 2004
Messages
734
Age
38
Location
Austria
Website
72dpiarmy.com
I hate the GPH file launcher, so I wrote my own.

It's still in an VERY EARLY stage, but shows which way I want to go:

First it scans your whole sd card (faster than you think)
Next is a list of all avaiable .gpe /.gpu's
Choose one.
Launch.
Smile.

http://gp2x.72dpiarmy.com/?q=node/8

At least that's the theory.

Oh well: direct link: http://gp2x.72dpiarmy.com/files/bastardshell.zip

Ideas for a finished launcher? Here!
 
I hate the GPH file launcher, so I wrote my own.

It's still in an VERY EARLY stage, but shows which way I want to go:

First it scans your whole sd card (faster than you think)
Next is a list of all avaiable .gpe /.gpu's
Choose one.
Launch.
Smile.

http://gp2x.72dpiarmy.com/?q=node/8

At least that's the theory.

Oh well: direct link: http://gp2x.72dpiarmy.com/files/bastardshell.zip

Ideas for a finished launcher? Here!

This is very weird because I was just thinking about this after showing some of my little games to a friend on New Year's Eve. She had some fun playing the games but couldn't work out how to re-start them when they dropped back to the menu.I thought of something exactly like what you described. The one extra idea I had was to include a thumbnail in each folder (call it the same thing each time, eg thumbnail.jpg) and put that on the screen beside the GPE/GPU name.In the meantime, I'll have a go at bastardshell and see what my friend thinks of it. Thanks.
 
Last edited by a moderator:
ok to clarify things:

1. currently it's a program. i'm going to write a shellscript which replaces the gph shell with bastardshell (i need to add some static paths to nand programs first though).

2. thumbnail images (aka icons) will be added once i save the directory tree to the sd card instead of scanning on startup

3. k? :)
 
So will it eventually evolve into something like yafl for the 2x? That would be sweet, but don't forget a "drop to shell" option for us hackers (just quit the app like on the original launcher when you press ctrl+c via a serial cable) - you may wish to support spawning bash via usb too (insmod gserial, mknod and then load bash)
 
Is it really practical to scan the entire SD? Could you give an indication of how many files you have on there and how long it takes?

I wanted to write something like this too -- and possible add in a feature to launch ROMs directly from the menu (as long as the emu accepts command-line arguments, of course).
 
rixor: it's rather fast. and in the future the scanned files will be saved, so you only need to scan everytime you installed something new (takes ~1-2seconds here)

squidge: jup - something like yafl for the 2x - that's my plan
drop to shell? - like add something in the background that scans for a keycode and quits the app to return to my shell? (or how would one implement this)?

bash via usb - remote shell via usb? would be cool but wouldn't this require a device driver on the pc too?
 
if your using sdl, then "drop to shell" could simply be done via something like a SDL keydown event of some numeric key or letter. It's only possible to do these via the serial lead.

'remote shell via usb' - well, if you use the released module by gfoot, then it emulates cdc-acm, so most os's pick it up as a standard serial port (linux, mac, windows), so no drivers required. you can connect to it with hyperterminal or whatever your favourite program is as it's just another serial port.
 
Back
Top