still unsure what that command mentioned previously does, but for anyone curious here is what i have working now.
im running xbmc-live obviously on an ion chipset (asus at3n7ai).
my advanced launcher loads my emus with:
zsnes.sh
Code:
#!/bin/bash
/usr/bin/killall -STOP xbmc.bin
/usr/bin/zsnes -ad alsa -v 22 -s "$1"
/usr/bin/killall -CONT xbmc.bin
mednafen.sh
Code:
#!/bin/bash
/usr/bin/killall -STOP xbmc.bin
/usr/games/mednafen -vdriver opengl -glvsync 1 -nes.xres 640 -nes.yres 480 -nes.stretch 0 -fs 1 "$1"
/usr/bin/killall -CONT xbmc.bin
for the arguements in advanced launcher, i just used "%rom%" so $1 in the .sh == rom filename. obviously, it loads the proper .sh feeding the rom filename.
i also created a .sh (kill-emus.sh) to kill the emulators. im new to this, so i didn't get fancy killing specific PIDs.
Code:
#!/bin/bash
/usr/bin/killall mednafen
/usr/bin/killall zsnes
i have the kill-emus.sh mapped to my home button on my mceusb compatible remote using irexec.
.lircrc
Code:
# Kill Emulators
begin
prog = irexec
button = Home
config = /home/htpc/kill-emus.sh
end
and to start irexec (which doesnt start automatically) i just inserted it into the xbmc launch script /usr/bin/xbmc (checked the proper key using irw):
Code:
...
LIBDIR="${exec_prefix}/lib"
# start irexec to handle emu kill scripts via remote
irexec &
# Check for some options used by this script
while [ "$#" -gt "0" ]
do
...
everything is working fine. according to 'top', xbmc is paused while the emus launch, and continues just fine when the emu is exited both using the normal method (escape key) and using the home button.
the only issue ive found so far is when xbmc is paused and the 'guide' (home) key is pressed to kill the emulators it does a double press so not only does it exit the emu, but it also reverts to the xbmc home screen.
anyone got some tips to help clean this setup up or fix the double key press? (there is normally no double key presses when xbmc is running).