From 36eb0b28f582af3b1db7a4000659882276616e85 Mon Sep 17 00:00:00 2001 From: stevebroskey <946790+stevebroskey@users.noreply.github.com> Date: Thu, 8 May 2025 21:41:22 -0400 Subject: [PATCH 1/2] Fix #9 (.BIN instead of .bin extension) Fixes #9 (https://github.com/TheCod3rYouTube/PS5NorModifier/issues/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. --- PS5 NOR Modifier/Form1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PS5 NOR Modifier/Form1.cs b/PS5 NOR Modifier/Form1.cs index 8f6dec8..5acb573 100644 --- a/PS5 NOR Modifier/Form1.cs +++ b/PS5 NOR Modifier/Form1.cs @@ -361,7 +361,7 @@ private void browseFileButton_Click(object sender, EventArgs e) { OpenFileDialog fileDialogBox = new OpenFileDialog(); fileDialogBox.Title = "Open NOR BIN File"; - fileDialogBox.Filter = "PS5 BIN Files|*.bin"; + fileDialogBox.Filter = "PS5 BIN Files|*.bin;*.BIN"; if (fileDialogBox.ShowDialog() == DialogResult.OK) { @@ -1156,4 +1156,4 @@ private void txtCustomCommand_KeyPress(object sender, KeyPressEventArgs e) } } } -} \ No newline at end of file +} From fe5ad189ae7678c56331dfe7e5cf55f1ca6e53fb Mon Sep 17 00:00:00 2001 From: stevebroskey <946790+stevebroskey@users.noreply.github.com> Date: Thu, 8 May 2025 22:44:40 -0400 Subject: [PATCH 2/2] Fix #9 Fix better: https://github.com/TheCod3rYouTube/PS5NorModifier/pull/12#issuecomment-2864927374 --- PS5 NOR Modifier/Form1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PS5 NOR Modifier/Form1.cs b/PS5 NOR Modifier/Form1.cs index 5acb573..6a1d13c 100644 --- a/PS5 NOR Modifier/Form1.cs +++ b/PS5 NOR Modifier/Form1.cs @@ -361,7 +361,7 @@ private void browseFileButton_Click(object sender, EventArgs e) { OpenFileDialog fileDialogBox = new OpenFileDialog(); fileDialogBox.Title = "Open NOR BIN File"; - fileDialogBox.Filter = "PS5 BIN Files|*.bin;*.BIN"; + fileDialogBox.Filter = "PS5 BIN Files|*.bin"; if (fileDialogBox.ShowDialog() == DialogResult.OK) { @@ -371,7 +371,7 @@ private void browseFileButton_Click(object sender, EventArgs e) } else { - if(!fileDialogBox.SafeFileName.EndsWith(".bin")) + if(!fileDialogBox.SafeFileName.EndsWith(".bin", StringComparison.OrdinalIgnoreCase)) { throwError("The file you selected is not a valid. Please ensure the file you are choosing is a correct BIN file and try again."); }