Skip to content

Conversation

@stevebroskey
Copy link

Fixes #9

Better fix would involve doing something case-insensitive. I'm no C# dev, but consider combining https://stackoverflow.com/a/55480402 with https://stackoverflow.com/a/69284465.

Thanks to Louis Rossmann for bringing attention to this worthwhile project: https://www.youtube.com/watch?v=fEMR6zKP9l8

Fixes TheCod3rYouTube#9 (TheCod3rYouTube#9)

Better fix would involve doing something case-insensitive. I'm no C# dev, but consider combining https://stackoverflow.com/a/55480402 with https://stackoverflow.com/a/69284465.
@ScrubN
Copy link

ScrubN commented May 9, 2025

This wouldn't fix the issue. Paths on Windows are case-insensitive, and the message box isn't coming from the OpenFileDialog.

@animeavi
Copy link

animeavi commented May 9, 2025

To fix that, change this line.

if(!fileDialogBox.SafeFileName.EndsWith(".bin"))

to

                    if(!fileDialogBox.SafeFileName.ToLower().EndsWith(".bin"))

@ScrubN
Copy link

ScrubN commented May 9, 2025

Even better, use string comparisons:

- if(!fileDialogBox.SafeFileName.EndsWith(".bin")) 
+ if(!fileDialogBox.SafeFileName.EndsWith(".bin", StringComparison.OrdinalIgnoreCase))

sugoidogo pushed a commit to sugoidogo/PS5NorModifier that referenced this pull request May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File reported as invalid if extension is .BIN instead of .bin

3 participants