mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 09:49:16 +01:00
Version 1.4.0.871
Small bug fix for first time users
This commit is contained in:
parent
676a98e399
commit
88008ee784
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.4.0.87")]
|
[assembly: AssemblyVersion("1.4.0.871")]
|
||||||
[assembly: AssemblyFileVersion("1.4.0.87")]
|
[assembly: AssemblyFileVersion("1.4.0.871")]
|
||||||
|
@ -92,10 +92,13 @@ namespace ScpServer
|
|||||||
if (File.Exists(appdatapath + "\\Profiles.xml"))
|
if (File.Exists(appdatapath + "\\Profiles.xml"))
|
||||||
tt.SetToolTip(linkUninstall, Properties.Resources.IfRemovingDS4Windows);
|
tt.SetToolTip(linkUninstall, Properties.Resources.IfRemovingDS4Windows);
|
||||||
tt.SetToolTip(cBSwipeProfiles, Properties.Resources.TwoFingerSwipe);
|
tt.SetToolTip(cBSwipeProfiles, Properties.Resources.TwoFingerSwipe);
|
||||||
{
|
bool firstrun = false;
|
||||||
if (File.Exists(exepath + "\\Auto Profiles.xml")
|
if (File.Exists(exepath + "\\Auto Profiles.xml")
|
||||||
&& File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\DS4Tool\\Auto Profiles.xml"))
|
&& File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\DS4Tool\\Auto Profiles.xml"))
|
||||||
|
{
|
||||||
|
firstrun = true;
|
||||||
new SaveWhere(true).ShowDialog();
|
new SaveWhere(true).ShowDialog();
|
||||||
|
}
|
||||||
else if (File.Exists(exepath + "\\Auto Profiles.xml"))
|
else if (File.Exists(exepath + "\\Auto Profiles.xml"))
|
||||||
Global.SaveWhere(exepath);
|
Global.SaveWhere(exepath);
|
||||||
else if (File.Exists(appdatapath + "\\Auto Profiles.xml"))
|
else if (File.Exists(appdatapath + "\\Auto Profiles.xml"))
|
||||||
@ -103,12 +106,17 @@ namespace ScpServer
|
|||||||
else if (!File.Exists(exepath + "\\Auto Profiles.xml")
|
else if (!File.Exists(exepath + "\\Auto Profiles.xml")
|
||||||
&& !File.Exists(appdatapath + "\\Auto Profiles.xml"))
|
&& !File.Exists(appdatapath + "\\Auto Profiles.xml"))
|
||||||
{
|
{
|
||||||
|
firstrun = true;
|
||||||
new SaveWhere(false).ShowDialog();
|
new SaveWhere(false).ShowDialog();
|
||||||
}
|
}
|
||||||
|
if (firstrun)
|
||||||
|
CheckDrivers();
|
||||||
|
else
|
||||||
|
{
|
||||||
var AppCollectionThread = new System.Threading.Thread(() => CheckDrivers());
|
var AppCollectionThread = new System.Threading.Thread(() => CheckDrivers());
|
||||||
AppCollectionThread.IsBackground = true;
|
AppCollectionThread.IsBackground = true;
|
||||||
AppCollectionThread.Start();
|
AppCollectionThread.Start();
|
||||||
|
}
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(Global.appdatapath))
|
if (String.IsNullOrEmpty(Global.appdatapath))
|
||||||
{
|
{
|
||||||
@ -232,7 +240,6 @@ namespace ScpServer
|
|||||||
linkUninstall.Visible = false;
|
linkUninstall.Visible = false;
|
||||||
StartWindowsCheckBox.Checked = File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\DS4Windows.lnk");
|
StartWindowsCheckBox.Checked = File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\DS4Windows.lnk");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetTopWindowName()
|
public static string GetTopWindowName()
|
||||||
{
|
{
|
||||||
@ -375,9 +382,10 @@ namespace ScpServer
|
|||||||
|
|
||||||
if (!deriverinstalled)
|
if (!deriverinstalled)
|
||||||
{
|
{
|
||||||
|
//Console.WriteLine("yo");
|
||||||
WelcomeDialog wd = new WelcomeDialog();
|
WelcomeDialog wd = new WelcomeDialog();
|
||||||
wd.ShowDialog();
|
wd.ShowDialog();
|
||||||
wd.FormClosing += delegate { btnStartStop_Click(null, null); btnStartStop_Click(null, null); };
|
wd.FormClosed += delegate { btnStartStop_Clicked(false); btnStartStop_Clicked(false); };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
Loading…
Reference in New Issue
Block a user