-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Savedata iteration order doesn't match the real PSP? #16939
Comments
Hm, this is probably a setting then? What I recall happening on a PSP is that the latest save is highlighted by default (see SceUtilitySavedataFocus) but that it's sorted in 0, 1, 2, 3 order - at least in the games I played. You could even have gaps. Maybe GTA sends a different flag? Also, this says "loaded" - is it really the "iteration order" or is there some issue with one of the focus methods (maybe SCE_UTILITY_SAVEDATA_FOCUS_FIRSTDATA should be by date rather than order, etc.)? -[Unknown] |
There are two different things here:
|
Bump, this is actually a really annoying problem in GTA, in hopes it can be fixed up for 1.16.. |
I'm not sure how to debug this properly, but I tried to follow where the code goes wrong and managed to make a workaround for gtavcs: What's going on is:
Ingame:
So, to workaround:
Hope this helps to get to the root of the problem somehow. |
The VCS bug is not related to the savedata iteration. The game does its own by calling sceIoGetstat on directories in "ms0:PSP/SAVEDATA" and picking up the one with the lowest m_time. On Linux at least, this always seems to return year=1900, month=1, day=0, so the game ends up picking the first one it finds in the directory. I don't know how @ThirteenAG 's workaround works, but the game does not set saveNameList on autoloads, only the saveName. |
Oh, that's good information! I'll look into the mtime issue, we should not be returning 1900.. |
We've been looking at the wrong thing, good to see this finally figured out. |
NABN00B on Discord:
Sergey confirms that the order is different.
Should be looked into.
The text was updated successfully, but these errors were encountered: