-
-
Notifications
You must be signed in to change notification settings - Fork 968
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
Separate Updates from Game Folder #1026
Conversation
Tested it for 30 mins seems to work fine for bloodborne, my save had DLC items and there was no issue loading them. Only had 1 crash, and it didn't have anything to do with the PR. Sending the report anyway just in case. |
Nice! Glad to see there doesn't seem to be any issues! Though I've got two questions, as I'm trying to verify saves version correctly:
|
e3d603b
to
67c0a7d
Compare
shad_log.zip |
I just saw you updating the pr, I hope my testing hasn't been redundant I would have replied earlier, but I was busy |
To clarify why I'm asking, the way the system works is if there is a file in the update directory to load it in there instead of in the original game folder. I'm trying to find any missed place where it could load data from the original game folder instead of the update folder where it should. The first question was to solve if you have a 1.09 game directory and then a 1.09 update directory. If it loads from the original game directory, which we don't want, I couldn't tell because no matter which it loaded they would both be 1.09. The second question was to solve if the save system attempted to load from the original game sfo instead of the update sfo, resulting in the save file sfo to be 1.00 (again, don't want this). If there's no sfo in the original game, then if it errors that it can't find it there that's an issue, and if it doesn't error then it finds the sfo in the right place. TLDR I'm trying to figure out if I need to redirect the save system to the update folder or if it's already good |
6ad9e20
to
fb57ae8
Compare
cd3f8b2
to
467300c
Compare
This PR seems tested enough, ready to review |
I would prefer to have an option for user to decide if it want to use the same folder (overwrite) or separate . Also what happends if game has multiple updates? |
The best things is to keep the original game and when you do multiple update, you can only play the original game or the game with the latest update and not every update. Example for Bloodborne: Is it clear ? |
I can definitely make using the separate update path a config option. Second, I agree with Hermiten, just like has it's been before installing another update will just overwrite the update. If you would prefer it not to, I can add the version number in the folder name and only use the latest, but selecting an update won't be possible to implement until per-game configs arrive. |
74e9817
to
ceb5dba
Compare
38128b2
to
8ac2d30
Compare
It's not abandoned, just haven't figured out how to solve the issue where after I updated submodules it's deleted ext-boost. Also needs a re-review after as I've since added the config option. Edit: Finally compiles! So every time the submodule changelogs appear in the GUI I updated them but once updating on the dev branch it deleted ext-boost so I just didn't do that. Only thing is it appears in the git diff on the first commit, but it doesn't appear in the changed files tab so that may or may not be OK. |
clang format clang format clang format clang hates me work please
6990cca
to
0c0df20
Compare
Hello, although the game patches was downloaded after the build, it does not appear in the ui(completely empty). Also, the updates are not installed anywhere else. Are you sure it works? |
Be careful about the word "download" for game updates. Does it change the version number on the game in the list to the update number? Also did you enable the config option beforehand? |
Yes, I turned on the relevant setting from the settings. The version is upgrading, but after that when I say "delete update" I get the message "no update found". I think it's still writing the updates into the game's files. |
Must be an issue with the install dir feature, I didn't account for it, I'll add it to my fix PR momentarily |
By the way, I didn't say "update", I said "patch". I meant Widescreen patch, resolution patch etc. after this build, it downloads the patches but they don't appear in the interface, the screen goes blank. So, what I meant by "downloading" in that sentence was patch/mod. Not game/update. But it is visible if patches are installed before the build. So I didn't mention downloading the game or the update. |
@par274 could you test with the fixes PR and make sure there's a -UPDATE folder and see what happens? It should be grabbing the version info from the game info, it might be that BB has no patches on 1.00 and well it's not updated |
Ok i download this build: https://github.com/shadps4-emu/shadPS4/actions/runs/11350759439 By the way, another bug. It says the game is installed even though it is not. This build creates a "-UPDATE" folder but its content is missing. Only sce_sys I know that there is a dvdroot_ps4 folder in this update. And when I press the "delete update" button, the emulator says it's 1.0, but the updated version is still visible in the game. I think it's still loading it into the game files. |
@par274 those two bugs should now be fixed, you can retest |
Build: https://github.com/shadps4-emu/shadPS4/actions/runs/11352777085 Patch bug continues. What I noticed is that the reason why the patches are not showing up is because the game has not been updated to 1.09. Update files are placed in the correct location but the game does not read them. |
It seems my fix PR got merged already so I'll work on this tomorrow |
Should I test the main build? |
yep it should have the fix PR |
but if you are already on latest fix PR no changes have been made since merge obviously so no point |
Okay I tried the last "main" build and there is no change. This is actually a very nice PR and if it is developed it can be used for logic game modes as well. In this way, we can install mods without affecting the game files. |
This is with #1397? |
Up until this point, you either had to keep a duplicate copy of a game (2x space requirements 😵) or uninstall and reinstall a game (keeping the pkg around somewhere) in order to play two versions of a game at the same time. I propose we meet in the middle: updates will be extracted to their own folder CUSAXXXXX-UPDATE, and the emulator will read files from this update directory instead of the game folder if present. Additionally, there is a right-click menu to delete the game or the update from the GUI.
I have tested by booting Limbo, but tests for other games are definitely needed as for obvious reasons I haven't tested with Bloodborne. I also haven't tested DLC, as none of my library has any, so DLC will need tested too.