From 36e60adaf7b9eea9d1811b600ebe47b5bb8f717c Mon Sep 17 00:00:00 2001 From: Dragoon Dorise Date: Thu, 12 Dec 2024 10:12:05 +0100 Subject: [PATCH] cloudHealth fix --- functions/cloudSyncHealth.ps1 | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/functions/cloudSyncHealth.ps1 b/functions/cloudSyncHealth.ps1 index a9d7bc39..1eb546fb 100644 --- a/functions/cloudSyncHealth.ps1 +++ b/functions/cloudSyncHealth.ps1 @@ -5,29 +5,21 @@ function cloudSyncHealth(){ $upload=1 $download=1 - $result = yesNoDialog -TitleText "CloudSync Health" -MessageText "Do you use EmulationStation to launch your games?" -OKButtonText "Yes" -CancelButtonText "No" + $result = yesNoDialog -TitleText "CloudSync Health" -MessageText "You need to have RetroArch installed for this to work." -OKButtonText "OK" -CancelButtonText "Cancel" if ($result -eq "OKButton") { - #Launching ESDE - Start-Process powershell.exe -ArgumentList "-ExecutionPolicy Bypass -File `"$toolsPath/launchers/esde/EmulationStationDE.ps1`" " - - } else { - $kill = "RETROARCH" - Start-Process powershell.exe -ArgumentList "-ExecutionPolicy Bypass -File `"$toolsPath/launchers/retroarch.ps1`" " - + Start-Process powershell.exe -ArgumentList "-ExecutionPolicy Bypass -File `"$toolsPath/launchers/retroarch.ps1`" " + }else{ + confirmDialog -TitleText "Manual action" -MessageText "Please install RetroArch from Manage Emulators..." + exit } - if ($kill -eq "RETROARCH") { - while (-not (Get-Process -Name "retroarch" -ErrorAction SilentlyContinue)) { - echo "waiting for RA to open" - Start-Sleep -Seconds 2 - } - }else{ - while (-not (Get-Process -Name "ES-DE" -ErrorAction SilentlyContinue)) { - echo "waiting for ESDE to open" - Start-Sleep -Seconds 2 - } + while (-not (Get-Process -Name "retroarch" -ErrorAction SilentlyContinue)) { + echo "waiting for RA to open" + Start-Sleep -Seconds 2 } + + Start-Sleep -Seconds 5 echo "Creating test file" echo "testing upload" > "$savesPath/retroarch/test_emudeck.txt"