Skip to content
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

GUI: Handle uppercase RAP file extension #9956

Merged
merged 4 commits into from Mar 13, 2021
Merged

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Mar 13, 2021

  • When attempting to either drap-and-drop or install uppercase RAP files from menu, detect it as RAP file (instead of trying to execute it as a PS3 executable) and rename extension to be lowercase ".rap" automatically.
    This is a quality of life improvement. Especially on Windows which on atleast on my Windows 10 and exFAT does not let me rename files if the only difference with its new filename is its characters' case, probably a broken "optimization" of File Explorer which attempts to detect same name before rename and avoids rename is such case. FYI to workaround this bug of File Explorer you need to rename the file to something different (so characters case would not be the only difference) and only then rename it to the final name.

  • Handle all PUP files in drag-and-drop, not just PS3UPDAT.PUP. This is useful for when you have multiple PUP files in a folder (e.g. for different fw versions) such as "PS3UPDAT (1).PUP". There is no much sense in blocking other PUP files, even if its a file meant for other uses for other programs because our PUP loader's error checking is superb.

  • Install RAP files atomically, ensure that its contents won't be corrupt if the source file was valid to begin with.

  • Detect illegal RAP files, log an error about it as well. Such as if the user attempts to create an empty RAP file.

@Asinin3
Copy link
Contributor

Asinin3 commented Mar 13, 2021

Nice QoL change! Will mean a lot less people asking for help.
Strange that you can't rename an extension on your windows 10 install to capitals. Works fine for me and many other people.

@Megamouse Megamouse added the GUI label Mar 13, 2021
@elad335
Copy link
Contributor Author

elad335 commented Mar 13, 2021

  • Handle all PUP files in drag-and-drop, not just PS3UPFDAT.PUP. This is useful for when you have multiple PUP files in a foolder (e.g. for different fw versions) such as "PS3UPDAT (1).PUP". There is no much sense in blocking other PUP files, even if its a file meant for other uses for other programs because our PUP loader's error checking is superb.

@elad335
Copy link
Contributor Author

elad335 commented Mar 13, 2021

  • Install RAP files atomically, ensure that its contents won't be corrupt if it was valid to begin with.
  • Detect illegal RAP files, log an error about it as well. Such as if the user attempts to create an empty RAP file.

@elad335
Copy link
Contributor Author

elad335 commented Mar 13, 2021

If I'm already working on it, what is the a reason RAP files are installed only for the current user and not for all users?

@Megamouse
Copy link
Contributor

Why would anyone want that

@elad335 elad335 requested a review from Megamouse March 13, 2021 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants