Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Commit 72fd2cb

Browse files
committed
Fix for W7 users.
1 parent 4b9530b commit 72fd2cb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

PaisleyPark/Models/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Settings : INotifyPropertyChanged
3131
/// <summary>
3232
/// Path to the game to use for various functions.
3333
/// </summary>
34-
public string GamePath { get; set; }
34+
// public string GamePath { get; set; }
3535

3636
/// <summary>
3737
/// Port for HTTP server.

PaisleyPark/ViewModels/MainWindowViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public MainWindowViewModel(IEventAggregator ea)
6767
Application.Current.Shutdown();
6868
}
6969

70+
// Set the security protocol, mainly for Windows 7 users.
71+
ServicePointManager.SecurityProtocol = (ServicePointManager.SecurityProtocol & SecurityProtocolType.Ssl3) | (SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12);
72+
7073
// Store reference to the event aggregator.
7174
EventAggregator = ea;
7275

PaisleyParkUpdater/MainWindow.xaml.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ public MainWindow()
2727

2828
DataContext = this;
2929

30+
// Set the security protocol, mainly for Windows 7 users.
31+
ServicePointManager.SecurityProtocol = (ServicePointManager.SecurityProtocol & SecurityProtocolType.Ssl3) | (SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12);
32+
3033
// Initialize variable for the current PP version.
31-
Version CurrentVersion;
3234
var forceCheckUpdate = false;
3335

3436
// Get the current version of the application.
35-
var result = Version.TryParse(FileVersionInfo.GetVersionInfo(Path.Combine(Environment.CurrentDirectory, "PaisleyPark.exe")).FileVersion, out CurrentVersion);
37+
var result = Version.TryParse(FileVersionInfo.GetVersionInfo(Path.Combine(Environment.CurrentDirectory, "PaisleyPark.exe")).FileVersion, out Version CurrentVersion);
3638
if (!result)
3739
{
3840
MessageBox.Show(

0 commit comments

Comments
 (0)