use noskip instead of skip keyword + add support for blockthespot

This commit is contained in:
Mylloon 2023-05-30 14:28:04 +02:00
parent ff15c3f3c3
commit a160c989c1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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