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: 5,143
Karma: 5329011
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|Ematic E6+E8|Rooted Nook Touch|NO K2!!
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:	44
Size:	79.5 KB
ID:	96717   Click image for larger version

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

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

Name:	20110906003230.jpg
Views:	53
Size:	345.6 KB
ID:	96721  
Attached Files
File Type: gz gb-flash.jpg.tar.gz (75.9 KB, 41 views)
__________________
Audiophile and electron bully.
My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK
Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him.
The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set

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