Is it possible with Hatari to start a games savestate from commandline and automatically save it after exit?
Goal is to create an easy to use desktoplink for kids for only one game.
Edit: figured it out myself -
1. check in the memory settings "load/save state at start-up/exit"
2. create a cfg file (in this case eliminator.cfg) for the individual games and change the szMemoryCaptureFileName and szAutoSaveFileName like:
nMemorySize = 1
bAutoSave = TRUE
szMemoryCaptureFileName = /home/t_b/.hatari/eliminator.sav
szAutoSaveFileName = /home/t_b/.hatari/eliminator.sav
3. start Hatari from command line or script with : hatari -c /home/t_b/.hatari/eliminator.cfg
Now I only need to figure out to exit Hatari without entering the gui.
changed all [ShortcutsWithoutModifiers] in the cfg to 0 exept KeyQuit. Changed it to "keyQuit = 293"
F12 is quit and you need the alt tab to go to other options.
So with all these settings I have created 2 shortcuts on my desktop. Clicking on them starts one of the games and after playing pressing F12: exits and saves the state for the executed game. Very very nice
BTW. I have done above in Linux but should be possible in Windows as well I guess.