mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-08-14 20:11:35 +03:00
service.bat: add support for clearing Discord Canary and Development cache (#16169)
This commit is contained in:
+10
-2
@@ -678,7 +678,7 @@ if !found_any_conflict!==1 (
|
|||||||
|
|
||||||
:: Discord cache clearing
|
:: Discord cache clearing
|
||||||
set "CHOICE="
|
set "CHOICE="
|
||||||
set /p "CHOICE=Do you want to clear the Discord and Discord PTB cache? (Y/N) (default: Y) "
|
set /p "CHOICE=Do you want to clear the Discord cache (Stable, PTB, Canary, Development)? (Y/N) (default: Y) "
|
||||||
if "!CHOICE!"=="" set "CHOICE=Y"
|
if "!CHOICE!"=="" set "CHOICE=Y"
|
||||||
if "!CHOICE!"=="y" set "CHOICE=Y"
|
if "!CHOICE!"=="y" set "CHOICE=Y"
|
||||||
|
|
||||||
@@ -692,7 +692,15 @@ if /i "!CHOICE!"=="Y" (
|
|||||||
set "discordFound=1"
|
set "discordFound=1"
|
||||||
call :clear_discord_cache "DiscordPTB.exe" "Discord PTB" "%APPDATA%\discordptb"
|
call :clear_discord_cache "DiscordPTB.exe" "Discord PTB" "%APPDATA%\discordptb"
|
||||||
)
|
)
|
||||||
if !discordFound! equ 0 call :PrintRed "Discord and Discord PTB were not found"
|
if exist "%APPDATA%\discordcanary\" (
|
||||||
|
set "discordFound=1"
|
||||||
|
call :clear_discord_cache "DiscordCanary.exe" "Discord Canary" "%APPDATA%\discordcanary"
|
||||||
|
)
|
||||||
|
if exist "%APPDATA%\discorddevelopment\" (
|
||||||
|
set "discordFound=1"
|
||||||
|
call :clear_discord_cache "DiscordDevelopment.exe" "Discord Development" "%APPDATA%\discorddevelopment"
|
||||||
|
)
|
||||||
|
if !discordFound! equ 0 call :PrintRed "Discord installations were not found"
|
||||||
set "discordFound="
|
set "discordFound="
|
||||||
)
|
)
|
||||||
echo:
|
echo:
|
||||||
|
|||||||
Reference in New Issue
Block a user