English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 09 February 2023, 11:53   #1
SunChild
EAB Noobie
 
SunChild's Avatar
 
Join Date: Jun 2009
Location: Natori-shi, JAPAN
Age: 49
Posts: 133
QuickRestoreState allows but a single SaveState?

Well, following my previous bug report from a week ago, I dare come here again to bug Toni once more (I'm actually surprised no one ever mentioned this issue — indeed someone prolly did), to report another bug, this time about the Quick Restore State assignable function.


All is in the title, but I'll explicit a bit anyways (I'll have to be quite verbose about it too, as it isn't so easy to explain through text only):


Using Quick Restore State, it seems impossible to use more than a single SaveState file (as in: changing the currently selected StateFile in the GUI to another one, and expecting it to be the one used by the Quick Restore function. That function will revert back to the previous state selected)

It will even keep this behaviour after quitting and launching the emulator again, remembering what was the previous SaveState from former sessions.
At first I believed this was due to the order of the "StatefileMRUList" section in "winuae.ini". But, even though the order of that section isn't updated when selecting a new state file, from what I could gather through testing, the current selected SaveState in "Misc" tab is indeed updated (since winuae.ini itself is) when quitting WinUAE.
So why the next session could still use an older (seemingly erased when winuae.ini is updated) state order list for the Quick Restore, and still ignore the selected state, is completely puzzling to me...


Let me take a practical example: say I have 2 savestates, "State.uss" and "State_1.uss", and that when launching WinUAE, StatefileMRUList has them ordered as Image01=State_1.uss and Image02=State.uss.
I put the correct floppy in df0:, select (or actually load) State_1.uss as current SaveState in the Misc tab, then start the emulator. I will then get State_1.uss restored alright.

YET, for some reason unknown to me, as soon as I use my "quick restore state" assigned function key, the restored state will be State.uss even though it was placed only in 2nd place in the list at launch, and even though I just specifically selected State_1.uss as current State in the Misc. tab!


And sure enough, even though that selected state is still displayed as "State#1" in the GUI menu Misc tab, as soon as I quit the program StatefileMRUList in .ini file will be updated with "State.uss" in 1st position in the list!


I couldn't for the life of me find any other config file in my WinUAE directory and subs (and no WinUAE-related file or dir in my User dir, thank god!) from which the emulator would grab this erroneous setting that "State.uss" is the file to be used by Quick Restore state, completely ignoring the actual currently selected state in the GUI.
Would that come straight from the registry? (although I wasn't aware WinUAE did write anything in it — then again, I could never find where the preset list in the Filter section was stored either).




Hopefully I could explain the issue clearly enough...

I'm at the end of my rope with this anyway. If Toni or anyone else has the resource and knowledge to shed some light on this, I'd be real grateful.

Last edited by SunChild; 09 February 2023 at 12:23.
SunChild is offline  
Old 09 February 2023, 17:20   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
StatefileMRUList does not affect statefile loading, saving or key shortcuts in any way. It is simply a list of last used statefiles that GUI statefile select menu shows.
Toni Wilen is offline  
Old 10 February 2023, 10:39   #3
SunChild
EAB Noobie
 
SunChild's Avatar
 
Join Date: Jun 2009
Location: Natori-shi, JAPAN
Age: 49
Posts: 133
Thx Toni, that's indeed what I concluded through testing.

In any case (this might be useful for diagnose purposes?) I found a workaround to the above described incorrect behaviour of Quick Restore/Save shortcuts: unless I'm mistaken, it seems the file used by these keyboard shortcuts will always point to the LAST __SAVED__ state (as in VIA THE GUI, NOT saved via the Quick Save shortcut!), no matter what other state you may select (in the popup list) or load in the GUI afterwards.

So if you want to switch the savestate you're using to another at any point, you must first SAVE it again via the GUI. THEN and only then can you use it with Quick Save and Restore shortcuts... (ie. Merely loading another one will restore that one alright, but won't point the Quick shortcuts to it! They will still continue to Restore and Save to the last saved state file)

I believe what's missing here and would fix the shortcuts issue, is that LOADING any state file in the GUI (or merely SELECTING one in the GUI list, for that matter) should (these actions don't, at the moment) update the state file to which Quick Save/Restore key shortcuts point — currently only the SAVE option of the GUI does seem to update this.

Last edited by SunChild; 10 February 2023 at 11:17.
SunChild is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Savestate also for Harddisks Konrad request.UAE Wishlist 17 29 May 2016 11:46
Savestate Issue DisposableHero support.WinUAE 3 10 July 2015 13:06
Regarding savestate torbenb support.WinUAE 2 24 January 2012 19:33
Winuae Savestate SOS DeafDaz support.WinUAE 3 20 August 2011 20:39
savestate and customscreenmodes Ratte support.WinUAE 1 17 August 2009 21:00

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:46.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16194 seconds with 15 queries