Does anyone know how to load WinUAE save states from the command line?
I've seen some older posts which suggest:
-s statefile=savestates\[file].uss as the switch
and
stateflile=savestates\[file].uss
Neither works. The former because the -s switch is to overwrite the loaded uae config and there is no savestate variable defined in the config. The latter, I suspect for similar reasons ie. that WinUAE does not have a savestate variable.
EDIT: Solved. Use "-cfgparam statefile="
To load a game into the floppy drive but start from a saved state use the following command line:
winuae.exe -config="[rompath]\[name].[romext]" -cfgparam statefile="[rompath]\[name].uss"
e.g.
winuae.exe -config="configurations\wizball.uae" -cfgparam statefile="configurations\wizball.uss"
You can keep the uae and uss files in the same directory and with the same name which makes for easy MAMEWah loading:
emulator_commandline [emurootpath]\[emuname]\WinUAE1530\winuae.exe -config="[rompath]\[name].[romext]" -cfgparam statefile="[rompath]\[name].uss"{dosbox}{safelaunch}
I upgraded to 1.5.3.0 from the older, front-end 'hacked' version (0.8.23) which configured MAME controls (U,D,L,R & Left Ctrl) and Esc to quit because more recent versions of WinUAE allow you to customise these settings. Here are the keyboard settings from the [name].uae file:
Simply paste the lines below into your [name].uae file between input.1.mouse and input.2.joystick.0
...
;input.1.mouse.7.disabled=0
input.1.keyboard.0.button.1=SPC_QUIT.0
input.1.keyboard.0.button.2=KEY_SPACE.0
input.1.keyboard.0.button.6=MOUSE1_UP.0
input.1.keyboard.0.button.7=MOUSE1_DOWN.0
input.1.keyboard.0.button.16=KEY_F5.0
input.1.keyboard.0.button.17=KEY_RETURN.0
input.1.keyboard.0.button.19=JOY1_UP.0
input.1.keyboard.0.button.21=KEY_F3.0
input.1.keyboard.0.button.29=JOY2_FIRE_BUTTON.0
input.1.keyboard.0.button.30=JOY1_FIRE_BUTTON.0
input.1.keyboard.0.button.31=JOY1_2ND_BUTTON.0
input.1.keyboard.0.button.32=JOY1_LEFT.0
input.1.keyboard.0.button.33=JOY1_DOWN.0
input.1.keyboard.0.button.34=JOY1_RIGHT.0
input.1.keyboard.0.button.42=KEY_F2.0
input.1.keyboard.0.button.44=KEY_F3.0
input.1.keyboard.0.button.45=KEY_F4.0
input.1.keyboard.0.button.56=JOY2_2ND_BUTTON.0
input.1.keyboard.0.button.57=KEY_F1.0
input.1.keyboard.0.button.200=JOY2_UP.0
input.1.keyboard.0.button.203=JOY2_LEFT.0
input.1.keyboard.0.button.205=JOY2_RIGHT.0
input.1.keyboard.0.button.208=JOY2_DOWN.0
;input.2.joystick.0.empty=true
...
Don't forget to specify
; common
use_gui=no
in the [name].uae file as well