From 323974dfaf8d85097b6b17b7503249a6d7d80a11 Mon Sep 17 00:00:00 2001 From: KilLo445 <20kaedyn05@gmail.com> Date: Wed, 21 Feb 2024 18:23:13 -0500 Subject: [PATCH] v1.2.2 Possibly the final update sadly. It was a fun ride. --- FS-Launcher/Extras.xaml.cs | 3 ++ FS-Launcher/MainWindow.xaml.cs | 44 +++++++++++++++++++++++++- FS-Launcher/Properties/AssemblyInfo.cs | 4 +-- README.md | 8 +++-- 4 files changed, 54 insertions(+), 5 deletions(-) diff --git a/FS-Launcher/Extras.xaml.cs b/FS-Launcher/Extras.xaml.cs index c11cecb..e4ef86b 100644 --- a/FS-Launcher/Extras.xaml.cs +++ b/FS-Launcher/Extras.xaml.cs @@ -220,6 +220,9 @@ private void ResetButton_Click(object sender, RoutedEventArgs e) private void HostsButton_Click(object sender, RoutedEventArgs e) { + MessageBox.Show("This feature is temporarily disabled.", "FS Launcher", MessageBoxButton.OK, MessageBoxImage.Error); + return; + if (IsAdministrator()) { MessageBox.Show("Please note:\n\nThis will create a backup of your hosts file, and if you undo these entries through the launcher, it will revert to your backup and remove any entries created after you created the backup.", "Hosts", MessageBoxButton.OK, MessageBoxImage.Exclamation); diff --git a/FS-Launcher/MainWindow.xaml.cs b/FS-Launcher/MainWindow.xaml.cs index 278ec38..10c6f56 100644 --- a/FS-Launcher/MainWindow.xaml.cs +++ b/FS-Launcher/MainWindow.xaml.cs @@ -17,7 +17,7 @@ namespace FS_Launcher { public partial class MainWindow : Window { - string launcherVersion = "1.2.1"; + string launcherVersion = "1.2.2"; // Paths private string rootPath; @@ -59,6 +59,7 @@ public static bool IsAdministrator() var principal = new WindowsPrincipal(identity); return principal.IsInRole(WindowsBuiltInRole.Administrator); } + bool startupMessagesSeen = false; // Other Stuff string dlc1; @@ -66,6 +67,7 @@ public static bool IsAdministrator() string dlc3; string strFirewall; string strDLC; + string startupMessages; public MainWindow() { @@ -96,6 +98,7 @@ public MainWindow() FirstRun(); CheckShiftKey(); GetCFG(); + StartupMessgaes(); } private void Window_ContentRendered(object sender, EventArgs e) @@ -160,6 +163,13 @@ private void GetCFG() { if (keyFSL != null) { + // Startup Messages + Object obMessages = keyFSL.GetValue("StartupMessages"); + if (obMessages != null) + { + startupMessages = (obMessages as String); + } + // Game Path Object obGRFSPath = keyFSL.GetValue("GRFSPath"); if (obGRFSPath != null) @@ -193,6 +203,35 @@ public void CheckShiftKey() } } + private void StartupMessgaes() + { + RegistryKey keyFSL = Registry.CurrentUser.OpenSubKey(@"Software\FS Launcher", true); + Object obMessages = keyFSL.GetValue("StartupMessages"); + + if (obMessages == null) { startupMessagesSeen = false; } + else + { + if (obMessages != null) + { + startupMessages = (obMessages as String); + if (startupMessages == "0") { startupMessagesSeen = false; } + else { startupMessagesSeen = true; } + } + } + + if (startupMessagesSeen == false) + { + MessageBox.Show("The features that help get multiplayer working have been disabled, as the way you get it to work has changed completely and would be very difficult for me to code into the launcher.", "FS Launcher", MessageBoxButton.OK, MessageBoxImage.Information); + MessageBox.Show("I recommend right clicking on the firewall and deleting your rule, and undo the Hosts entries if you added them.", "FS Launcher", MessageBoxButton.OK, MessageBoxImage.Information); + MessageBox.Show("Other features such as NoIntro and DLC Unlocker still work, so I'm not going to kill the launcher completely.", "FS Launcher", MessageBoxButton.OK, MessageBoxImage.Information); + MessageBox.Show("And plus, you never know, maybe one day it will be useful again.", "FS Launcher", MessageBoxButton.OK, MessageBoxImage.Information); + MessageBox.Show("You will not see these messages next time you open FS Launcher, they will be available in the README.", "FS Launcher", MessageBoxButton.OK, MessageBoxImage.Information); + keyFSL.SetValue("StartupMessages", "1"); + } + + keyFSL.Close(); + } + private void FirstRun() { RegistryKey keyFSL = Registry.CurrentUser.OpenSubKey(@"Software\FS Launcher", true); @@ -454,6 +493,9 @@ private void LaunchGRFSExe() private void FirewallButton_Click(object sender, RoutedEventArgs e) { + MessageBox.Show("This feature is temporarily disabled.", "FS Launcher", MessageBoxButton.OK, MessageBoxImage.Error); + return; + MessageBoxResult firewallMessageBox1 = System.Windows.MessageBox.Show("Are you sure you want to setup the Firewall Rule in Windows?", "Firewall", System.Windows.MessageBoxButton.YesNo); if (firewallMessageBox1 == MessageBoxResult.Yes) { diff --git a/FS-Launcher/Properties/AssemblyInfo.cs b/FS-Launcher/Properties/AssemblyInfo.cs index 79428d5..f91f3e9 100644 --- a/FS-Launcher/Properties/AssemblyInfo.cs +++ b/FS-Launcher/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("Ghost Recon: Future Soldier Launcher")] -[assembly: AssemblyDescription("Ghost Recon: Future Soldier Launcher")] +[assembly: AssemblyTitle("FS Launcher")] +[assembly: AssemblyDescription("Launcher for Ghost Recon: Future Soldier")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("KilLo")] [assembly: AssemblyProduct("FS-Launcher")] diff --git a/README.md b/README.md index a4cfa4a..83d7fab 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ -# ONLINE SERVICES SHUTTING DOWN -Ubisoft has sadly announced that the online services for Ghost Recon: Future Soldier (As well as some other games) will be shut in in January 2024. So unfortunately this launcher will become pointless. Read more [here](https://news.ubisoft.com/en-us/article/64NYEKbdiuRMqFE0YXvWCN/decommissioning-some-online-services-in-january). +# Important Announcement +By some miracle, the game still works. +But, features that help get multiplayer working have been disabled, as the way you get it to work has changed completely and would be very difficult for me to code into the launcher. +I recommend right clicking on the firewall and deleting your rule, and undo the Hosts entries if you added them. +Other features such as NoIntro and DLC Unlocker still work, so I'm not going to kill the launcher completely. +And plus, you never know, maybe one day it will be useful again. # Future Soldier Launcher FS Launcher, or Future Soldier Launcher is a launcher to help get Tom Clancy's Ghost Recon: Future Soldier multiplayer working. As it can be annoying, so this program aims at helping out.