Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KilLo445 committed Apr 4, 2024
1 parent 0f32936 commit 58f6262
Show file tree
Hide file tree
Showing 12 changed files with 57 additions and 37 deletions.
6 changes: 5 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
v1.0.0
v1.0.1
- Fixed a small oversight
- Updated random messages

v1.0.0
- Added Need for Speed: High Stakes
- Added Need for Speed: Hot Pursuit 2
- Added tooltips
Expand Down
4 changes: 1 addition & 3 deletions NFSPatcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace NFSPatcher
public partial class MainWindow : Window
{
// Strings
public static string version = "1.0.0";
public static string version = "1.0.1";
string latestVer = "https://raw.githubusercontent.com/KilLo445/NFSPatcher/main/Remote/latest-version.txt";

string githubLink = "https://github.com/KilLo445/NFSPatcher";
Expand Down Expand Up @@ -45,7 +45,6 @@ public MainWindow()

var random = new Random();
var list = new List<string> {
"lmao",
"VROOOOM",
"First, I'm gonna take your ride, then I'm gonna take your girl!",
"Sit down! How you been?",
Expand All @@ -57,7 +56,6 @@ public MainWindow()
"Cars? I got covered.",
"I'm glad you're here, sugar plum.",
"EA Games. Make running these games challenging... get it??? ...",
"EA Spor... wait wrong one."
};
int index = random.Next(list.Count);
randText.Text = list[index];
Expand Down
14 changes: 8 additions & 6 deletions NFSPatcher/Windows/NFS10.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ private void CloseButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs

private void GoBTN_Click(object sender, RoutedEventArgs e)
{
string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

MessageBoxResult isCEConfirm = MessageBox.Show($"Do you have {gameName} Collectors Edition?\n\nIf you don't know, you probably do.", $"{gameName}", MessageBoxButton.YesNo, MessageBoxImage.Question);
if (isCEConfirm == MessageBoxResult.Yes) { isCollectors = true; }
if (isCEConfirm == MessageBoxResult.No) { isCollectors = false; }
Expand Down Expand Up @@ -125,12 +132,7 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
SelectInstallPath();
if (selectPathCanceled == true) { return; }
}

string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
}

if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
14 changes: 8 additions & 6 deletions NFSPatcher/Windows/NFS18.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ private void CloseButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs

private void GoBTN_Click(object sender, RoutedEventArgs e)
{
string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\EA Games\Need for Speed(TM) The Run", true);
if (key != null)
{
Expand Down Expand Up @@ -103,12 +110,7 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
SelectInstallPath();
if (selectPathCanceled == true) { return; }
}

string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
}

if (comboBoxSelection != null)
{
if (comboBoxSelection == "Create Firewall Rule")
Expand Down
2 changes: 2 additions & 0 deletions NFSPatcher/Windows/NFS2.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
2 changes: 2 additions & 0 deletions NFSPatcher/Windows/NFS3.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
2 changes: 2 additions & 0 deletions NFSPatcher/Windows/NFS4.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
12 changes: 7 additions & 5 deletions NFSPatcher/Windows/NFS6.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ private void CloseButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs

private void GoBTN_Click(object sender, RoutedEventArgs e)
{
string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2", true);
if (key != null)
{
Expand Down Expand Up @@ -92,11 +99,6 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
if (selectPathCanceled == true) { return; }
}

string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
}
if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
12 changes: 7 additions & 5 deletions NFSPatcher/Windows/NFS7.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ private void CloseButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs

private void GoBTN_Click(object sender, RoutedEventArgs e)
{
string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\EA Games\Need For Speed Underground", true);
if (key != null)
{
Expand Down Expand Up @@ -115,11 +122,6 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
if (selectPathCanceled == true) { return; }
}

string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
}
if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
12 changes: 7 additions & 5 deletions NFSPatcher/Windows/NFS8.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ private void CloseButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs

private void GoBTN_Click(object sender, RoutedEventArgs e)
{
string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\EA Games\Need For Speed Underground 2", true);
if (key != null)
{
Expand Down Expand Up @@ -115,11 +122,6 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
if (selectPathCanceled == true) { return; }
}

string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
}
if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
12 changes: 7 additions & 5 deletions NFSPatcher/Windows/NFS9.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ private void CloseButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs

private void GoBTN_Click(object sender, RoutedEventArgs e)
{
string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
return;
}

RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\EA Games\Need for Speed Most Wanted", true);
if (key != null)
{
Expand Down Expand Up @@ -115,11 +122,6 @@ private void GoBTN_Click(object sender, RoutedEventArgs e)
if (selectPathCanceled == true) { return; }
}

string comboBoxSelection = ComboBox.Text;
if (comboBoxSelection == null || comboBoxSelection == "")
{
MessageBox.Show("Please select a patch method.", "NFSPatcher", MessageBoxButton.OK, MessageBoxImage.Information);
}
if (comboBoxSelection != null)
{
if (comboBoxSelection == "Main Patches")
Expand Down
2 changes: 1 addition & 1 deletion Remote/latest-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit 58f6262

Please sign in to comment.