-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Save manager backup/restore-backup 4006 #4113
base: master
Are you sure you want to change the base?
Save manager backup/restore-backup 4006 #4113
Conversation
added button to restore backup
I thought the ExtraData files were used to map folders to games, for example my save for Voice of Cards Beasts of Burden with ID 010022D016030000 and here is a hex view of the ExtraData file: But I'm not familiar with the system or the codepaths, and I suppose there might be exceptions with apps and homebrew. |
Just checked it with super smash and it seems you are right. I'll dig into this. |
This is not the right way to go, I suggest you to take a look at https://github.com/Ryujinx/Ryujinx/blob/master/Ryujinx.Ava/Ui/Controls/SaveManager.axaml.cs and the UserProfile code if you want to find a proper way to backup and restore savedata. You should take a look at the LibHac code too. You removed ExtraData which could be used by some games. You store saves in a Zip at a hardcoded place instead of letting the users choose the destination. You don’t use locale fields for the new added texts. |
I understand my way wasn't the right way to go but the extra files truly seem to save the TitleId. |
new method for backup and restoring save data user can choose filename now
Well, there are a lot of things that should be done differently,
Export
|
yes I am |
I try to use libhac but I did already and couldn't find a good documentation or the right things to use. |
… saveManager and reimplemented exporter using libhac instead of c# file api
…dAkisuke/Ryujinx into SaveManagerBackupRestore_4006
Moved buttons to saveManager. |
This may or may not be out of scope of your intentions as I haven't looked over what you are doing, and perhaps could be more trouble than you want to put working on management of saves; but if not and if you haven't already considered it, furthering your management work to also be able to import Yuza saves could be useful. If it is too much out of scope or trouble and you do decide to do so, it might be better to put in another pull request. |
saveDataImporter working saveDataExporter fixes added import to saveDataManager
…dAkisuke/Ryujinx into SaveManagerBackupRestore_4006
So everythings working now as far as i tested it. FeatureAdded Import/Export buttons to the savemanager. |
@GodAkisuke In addition, could we please 'also' have Save Manager in the tools menu? (a quick link in the tools menu, at least for the part « Backup/Restore » of saves). Per my discussion with the others devs, for this addition, we need also to have a quick additional dialog to select the user profile, as each user has separate saves. Comment also referred here #3997 |
@GodAkisuke Could you please check the issues (branch conflicts) and rebase to test the PR? |
return Result.Success; | ||
} | ||
|
||
private bool CreateSaveData(ApplicationData app) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a copy of the method in ApplicationHelper
? It shouldn't be duplicated
Issue 4006 - Save savedata as backup and restore it
So i added 2 buttons in the save manager from the usesr profile menu.
One button compress the savedata folder into a zip located to a user specified path.
The other button extracts the backup and tries to replace the current savedata, with the same name and parent folder, with the backup save files.
All games i have had different savedata filenames so i assumed this could be a good approach because i got told theres no way to figure out which savedata folders and games are linked.