From 7899b41ce2906b0f4b79a22e3c9691ed059f5d41 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 29 Dec 2024 16:57:42 +0100 Subject: [PATCH] Revert "use protocol instead of exe path" This reverts commit 70557a37a960f6c12e8ab42bde6ec187fde91022. --- windows/apply_mihoyo_shortcut.bat | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/windows/apply_mihoyo_shortcut.bat b/windows/apply_mihoyo_shortcut.bat index 0d0fb62..0033379 100644 --- a/windows/apply_mihoyo_shortcut.bat +++ b/windows/apply_mihoyo_shortcut.bat @@ -10,7 +10,7 @@ fltmc >NUL 2>&1 || ( ) SET "collapse=%LOCALAPPDATA%\CollapseLauncher\current" -SET "protocol=collapse://" +SET "exe=CollapseLauncher.exe" SET "iconpath=Assets\Images\GameIcon" SET "shortcutpath=%ProgramData%\Microsoft\Windows\Start Menu\Programs\Collapse Launcher Team" SET "args=open --region \"Global\" --play --game" @@ -20,7 +20,8 @@ ECHO Genshin shortcut creation... PowerShell -Command "" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Genshin Impact.lnk');" ^ - "$Shortcut.TargetPath = '!protocol!!args! \"Genshin Impact\"';" ^ + "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ + "$Shortcut.Arguments = '!args! \"Genshin Impact\"';" ^ "$Shortcut.IconLocation = '!collapse!\!iconpath!\icon-genshin.ico';" ^ "$Shortcut.Save()" @@ -29,7 +30,8 @@ ECHO Honkai shortcut creation... PowerShell -Command "" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Honkai Star Rail - HSR.lnk');" ^ - "$Shortcut.TargetPath = '!protocol!!args! \"Honkai: Star Rail\"';" ^ + "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ + "$Shortcut.Arguments = '!args! \"Honkai: Star Rail\"';" ^ "$Shortcut.IconLocation = '!collapse!\!iconpath!\icon-starrail.ico';" ^ "$Shortcut.Save()" @@ -38,7 +40,8 @@ ECHO ZZZ shortcut creation... PowerShell -Command "" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Zenless Zone Zero - ZZZ.lnk');" ^ - "$Shortcut.TargetPath = '!protocol!!args! \"Zenless Zone Zero\"';" ^ + "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ + "$Shortcut.Arguments = '!args! \"Zenless Zone Zero\"';" ^ "$Shortcut.IconLocation = '!collapse!\!iconpath!\icon-zenless.ico';" ^ "$Shortcut.Save()"