rsn8887 / uae4all2

A fast and optimized Amiga Emulator for Vita and Switch
GNU General Public License v2.0
83 stars 10 forks source link

Autoload straight into a Savestate #11

Closed GrethTom closed 5 years ago

GrethTom commented 5 years ago

I’ve been using the PSP Vice C64 emulator a lot and a really awesome feature is setting up an autoload savestate. The way it works is when you select your game file, it loads the settings and goes straight into the autoload savestate without any additional steps.

The way I could see it working here is by setting up one additional savestate called A or Auto. When you select the rom file, it would load the settings (as it does today) and if there is an Autoload savestate assigned, it would go straight to that without any additional button clicks. If you wanted to just restart the system with the same rom files, just go back to the menu and hit RB to reset the system. I know it’s a big ask but would this be something possible here?

rsn8887 commented 5 years ago

I love that feature in PSP Vice, too! This will be in the next release, it works for .adf files (not for .hdf yet)

I plan to make a release soon. Here's the version I plan to release: https://mega.nz/#!pQpQnQzT!V0K-taWWa-qDgqNC2nlN9O3J7x-FoHXx0UU4vO8fCUE

Please tell me if you find any problems.

One thing I noticed is that auto-loading, like any other savestate, only works when the emulation has been started at least once. So you have to start the emulator once (press R), and then, after that, the automatic save states should always work.

I also had to add a "delete savestate" option, so you can get rid of the auto states easily.

rsn8887 commented 5 years ago

Implemented in v1.72

GrethTom commented 5 years ago

Fantastic, thanks a lot. Will you be looking to add HDF support in a future update?

rsn8887 commented 5 years ago

Yes I will also add auto-load to hdf. It was just a bit more complicated.

GrethTom commented 5 years ago

Great work, appreciate all your help!

rsn8887 commented 5 years ago

I made a version that supports hdf auto-savestates. Please try it here: https://mega.nz/#!IVxyRAyD!vmVGCHJBToitCC5D_WYElacESzNZ418T_cUNlwnzdhY

GrethTom commented 5 years ago

Perfect, I’ll give it a try later and will let you know how I get on.

GrethTom commented 5 years ago

I’m getting quite a lot of issues in this new version you posted. Savestate on hdf seem to failing more regularly now. I like using the hdf file in the DF0 slot which worked well in the previous version just I couldn’t use the saved folder for savestates (using ROMs folder worked) however it doesn’t work at all in the new version. Also getting issues with CONF files on hdf. Would recommend not releasing this version. Happy to test further or give more specific if I can. Thanks.

rsn8887 commented 5 years ago

I will not release and test it myself a bit more then.

Thanks for the feedback.

Yes it is true, with all the changes, you cannot put hdf files in df0 anymore. You have to put them in the hdf slot. The (auto) save file name will be selected via the following steps

So if you want to save an auto state for hdf, you HAVE to keep df0, df1, ... all empty. Otherwise, it will try to load your hdf autosave when you insert a df0 floppy.

EDIT: keep in mind you can also use Vitashell to delete any .conf or .asf savestates to make stuff work again.