View Single Post
Old 11-23-2012, 06:24 PM   #145
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Okay so I got it as a simple script.

picture attached. gb-flash.jpg

should be the size as pictured in second screenie.


/mnt/us/usr/bin/run-game (or something)
Spoiler:
Code:
#!/bin/sh
# draw pattern
eips -p
sleep 1
#draw picture frame
eips -g /mnt/us/usr/bin/pictures/gb-flash.jpg
sleep 1

fbgnuboy ./rom/$@ 2> /mnt/us/gnuboy.log


or the old favourite (THIS SCRIPT ASSUMES /mnt/us/fbgnuboy for the game engine and /mnt/us/fbgnuboy/roms for the games locations!!!)

I high-lighted all the location calls so you can check you have them right...
Spoiler:

Code:
#!/bin/sh
#================================================= ==
# getkb - get translated ascii keys from K3 keyboard
# v1.2 by geekmaster
# STDOUT: pressed keys, until Enter key pressed.
#---------------------------------------------------
getkb() {
eips -z 2 38 # scroll
XP=0
YP=39
DN=/dev/null
KN="1234567890____qwertyuiop____asdfghjkl_____zxcvbnm_."
KS="1234567890____QWERTYUIOP____ASDFGHJKL_____ZXCVBNM_,"
KP="1234567890____~@#$%^&*()____<>[]{}?/\_____;:'|-+=_?"
KM=$KN
ST=""
while :;do
eips $XP $YP "$ST""_ "
L="_"
set $(waitforkey); K=$1 D=$2
[[ $D -eq 0 ]]&& continue
# [[ $K -eq 28 ]]&& break # enter
[[ $K -eq 190 ]]&& break # use Aa for enter
[[ $K -eq 14 ]]&& ST="$(echo ${ST%?})" && continue # del
[[ $K -eq 42 ]]&& KM=$KS && continue # shift
[[ $K -eq 126 ]]&& KM=$KP && continue # Sym
[[ $K -eq 57 ]]&& L=" " # space
[[ $K -le 52 ]]&& L="$(echo \"$KM\"|cut -b$K-$K)"
# [[ "$L" == "_" ]]&& L="($K)"
[[ "$L" == "_" ]]&& continue
# echo -n "$L"
ST="$ST$L"
KM=$KN
done
echo "$ST"
}

putei() {
st=$1
ii=${#st}
while [ $ii -ge 0 ] 
do
eips -z 2 38 # scroll
eips 0 39 "$(echo $st | cut -b-50)" # write to the bottom
st="$(echo $st | cut -b51-)"
ii=$(( ii - 50 ))
done
}


killall -stop cvm launchpad 2> /dev/null
cd /mnt/us/fbgnuboy
eips -c;
putei "fbgnuboy - Games Boy Advanced Emulator"
putei ""
putei "Available ROMS -"
putei "$(ls ./roms | sed -e 's/\.[a-zA-Z]*$//')"
putei ""
putei "Execute Which ROM?"
game="$(getkb)"
#draw picture frame
eips -g ./gb-flash.jpg
sleep 1
HOME=/tmp ./fbgnuboy ./roms/"$game".g* 2> /mnt/us/gnuboy.log
killall -cont cvm launchpad 2> /dev/null

Tested as working on mine.
manages loading GB and GBC files just fine. simply enter the first part of the filename.

like ast for ast.gb or ast.gbc.

remember Aa Key is "enter Key" for load script.

Z X A S (I think?) for the games ; )

HOME to exit. : )

Quote:
Originally Posted by the_Gameboy_Launchpad_ini
Code:
[Actions]

## Launch the Gameboy Emulator
G B = !/mnt/us/fbgnuboy/rungame
Change that to your needs
Attached Thumbnails
Click image for larger version

Name:	gb-flash.jpg
Views:	631
Size:	79.5 KB
ID:	96717   Click image for larger version

Name:	Selection_009.png
Views:	693
Size:	126.8 KB
ID:	96718   Click image for larger version

Name:	20110906003212.jpg
Views:	802
Size:	443.4 KB
ID:	96720   Click image for larger version

Name:	20110906003230.jpg
Views:	693
Size:	345.6 KB
ID:	96721  
Attached Files
File Type: gz gb-flash.jpg.tar.gz (75.9 KB, 420 views)

Last edited by twobob; 12-09-2012 at 07:53 PM. Reason: putei "$(ls ./roms | sed -e 's/\.[a-zA-Z]*$//')" - fixed up the spaces - duh thanks MR! ;)
twobob is offline   Reply With Quote