Order of the Butterfly
Posts: 327 from 2006/2/23
From: the Planet of ...
Instead of "Wait 13", you could do "WaitForPort UAE I=1 L=20", this waits max 20 seconds, and checks every second.
You will be sending commands to nil this way as UAE port will be ready way before emulated system boots. I've found a solution though.
Create/Modify a file in a system running in e-uae and then get notification on MorphOS, so a command can be send when the emulated system is ready. uae_rcli needs to be quite early in s-s, it doesn't create its own port and has to be run with run.
DOS notification can be get using Magicbeacon, WaitNotify. There is also a new command in the upcoming MorphOS :).
echo "param1: <folder>"
echo "param2: <slavename>"
Run >NIL: SYS:Tools/e-uae/e-uae -f SYS:Tools/e-uae/Conf/A1200_WHDLoad.conf
RXcmd UAE "uaeexe Cd <folder>"
RXcmd UAE "uaeexe WHDLoad PRELOAD <slavename>"
;Fancy version below with F12 as a quitkey
;RXcmd UAE "uaeexe WHDLoad SPLASHDELAY=0 QUITKEY=111 PRELOAD SLAVE=<slavename>"
Run >NIL: C:uae_rcli
;...the rest of your s-s
Echo > RAM2:T/e-uae-boot
http://korni.ppa.pl/modkowypaczek/ | My Rifle, My Bunny, and Me