Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
Possibly the final update sadly. It was a fun ride.
  • Loading branch information
KilLo445 committed Feb 21, 2024
1 parent 8aae318 commit 323974d
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 5 deletions.
3 changes: 3 additions & 0 deletions FS-Launcher/Extras.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
44 changes: 43 additions & 1 deletion FS-Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -59,13 +59,15 @@ public static bool IsAdministrator()
var principal = new WindowsPrincipal(identity);
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}
bool startupMessagesSeen = false;

// Other Stuff
string dlc1;
string dlc2;
string dlc3;
string strFirewall;
string strDLC;
string startupMessages;

public MainWindow()
{
Expand Down Expand Up @@ -96,6 +98,7 @@ public MainWindow()
FirstRun();
CheckShiftKey();
GetCFG();
StartupMessgaes();
}

private void Window_ContentRendered(object sender, EventArgs e)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions FS-Launcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 323974d

Please sign in to comment.