mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-17 00:16:20 +01:00
Fixed copying of new updater version from Updates Files directory
This commit is contained in:
parent
4994266b20
commit
d360ce149e
@ -572,7 +572,7 @@ namespace DS4Windows.Forms
|
||||
|
||||
private void UpdateTheUpdater()
|
||||
{
|
||||
if (File.Exists(exepath + "\\Update Files\\DS4Updater.exe"))
|
||||
if (File.Exists(exepath + "\\Update Files\\DS4Windows\\DS4Updater.exe"))
|
||||
{
|
||||
Process[] processes = Process.GetProcessesByName("DS4Updater");
|
||||
while (processes.Length > 0)
|
||||
@ -582,8 +582,8 @@ namespace DS4Windows.Forms
|
||||
}
|
||||
|
||||
File.Delete(exepath + "\\DS4Updater.exe");
|
||||
File.Move(exepath + "\\Update Files\\DS4Updater.exe", exepath + "\\DS4Updater.exe");
|
||||
Directory.Delete(exepath + "\\Update Files");
|
||||
File.Move(exepath + "\\Update Files\\DS4Windows\\DS4Updater.exe", exepath + "\\DS4Updater.exe");
|
||||
Directory.Delete(exepath + "\\Update Files", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user