-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
cellSaveData: funcFile improvements, some error checks added #7742
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elad335
changed the title
WIP attempt to solve cellSaveData's param error 70 regression
cellSaveData: funcFile improvements
Mar 12, 2020
Added some changes based on private hw tests. |
Added some error checks for fun. |
elad335
changed the title
cellSaveData: funcFile improvements
cellSaveData: funcFile improvements, some error checks added
Mar 13, 2020
elad335
force-pushed
the
sys_prx
branch
2 times, most recently
from
March 13, 2020 13:53
f0de905
to
bc7373d
Compare
Nekotekina
reviewed
Mar 13, 2020
Also extend the check to check empty name.
|
* Allow '_' at filenames start and extension. * Check if reading offset is valid, fix error code to CELL_SAVEDATA_ERROR_FAILURE. * Don't create empty file on error of write ops. * Don't allow "." and ".." filenames on funcFile, return CELL_SAVEDATA_ERROR_BROKEN.
* Check listSet->fixedListNum. * Check listSet->fixedList for nullptr and its directory items names. * Check listSet->focusDirName for nullptr and directory name. * Check listSet->newData->iconPosition. * Check listSet->newData->dirName for nullptr and directory string. * Check statSet->setParam->parental_level for old sdk. * Return an error if listSet->focusPosition is NEWDATA and listSet->newData is nullptr. * Simplify savedata directory list selection.
elad335
force-pushed
the
sys_prx
branch
5 times, most recently
from
March 13, 2020 15:38
a2b997c
to
14b7342
Compare
Nekotekina
reviewed
Mar 13, 2020
Filters "." and "..", as well as possible wrong directories added by the user.
This PR also fixed same problem with saving in The Evil Within. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #7738.