File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ public Form1()
3131 {
3232 InitializeComponent ( ) ;
3333
34+ // get rid of "The request was aborted: Could not create SSL/TLS secure channel" error that happens on some versions of windows
35+ ServicePointManager . Expect100Continue = true ;
36+ ServicePointManager . SecurityProtocol = SecurityProtocolType . Tls12 ;
37+
3438 // get steam path
3539 string steampath = ( string ) Registry . GetValue ( "HKEY_LOCAL_MACHINE\\ SOFTWARE\\ Valve\\ Steam" , "InstallPath" , "null" ) ;
3640 if ( steampath == "null" )
@@ -68,12 +72,6 @@ public Form1()
6872 throw new FileNotFoundException ( "N++ not installed in steam" ) ;
6973 }
7074
71- // rename linked labels
72- //steamInstallDir.Text = steamGamePath;
73- //profileDir.Text = profilePath;
74- //screenshotsDir.Text = screenshotsPath;
75- //backupsDir.Text = savePath;
76-
7775 // create backup directories if they dont exist
7876 if ( ! Directory . Exists ( savePath ) ) Directory . CreateDirectory ( savePath ) ;
7977 if ( ! Directory . Exists ( savePath + @"\Profiles" ) ) Directory . CreateDirectory ( savePath + @"\Profiles" ) ;
Original file line number Diff line number Diff line change @@ -58,4 +58,8 @@ Needs Visual Studio Community 2019 with C# .Net stuff installed to compile from
5858
5959## Credits:
6060
61- ps, daniel
61+ * ps main development
62+
63+ * daniel steam detection code
64+
65+ * cloudead beta-testing
You can’t perform that action at this time.
0 commit comments