diff --git a/windows/blockthespot.bat b/windows/blockthespot.bat index 71e962c..fd58cc6 100644 --- a/windows/blockthespot.bat +++ b/windows/blockthespot.bat @@ -28,5 +28,5 @@ DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL ie4uinit -show ECHO Suppression du raccourci du bureau -PAUSE +IF NOT "%1"=="noskip" PAUSE EXIT /B diff --git a/windows/fix_obs_shortcut.bat b/windows/fix_obs_shortcut.bat index 40839f9..c55c608 100644 --- a/windows/fix_obs_shortcut.bat +++ b/windows/fix_obs_shortcut.bat @@ -15,5 +15,5 @@ PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^ "$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^ "$Shortcut.Save()" -IF NOT "%1"=="skip" PAUSE +IF NOT "%1"=="noskip" PAUSE EXIT /B diff --git a/windows11.bat b/windows11.bat index 2af6269..5582480 100644 --- a/windows11.bat +++ b/windows11.bat @@ -10,7 +10,7 @@ fltmc >NUL 2>&1 || ( :: === Install Spotify == PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'" DEL "%APPDATA%\Spotify" - ECHO Y| CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat" + ECHO Y| CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat" noskip PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue" :: Start as administrator @@ -230,7 +230,7 @@ PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^ "--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^ "$Shortcut.Save()" :: Default shortcut should start default profile -CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat skip +CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat noskip :: Allow system to go in sleep mode when OBS is running powercfg -requestsoverride process obs64.exe display system awaymode