diff --git a/windows/apply_mihoyo_shortcut.bat b/windows/apply_mihoyo_shortcut.bat index 5100df3..0033379 100644 --- a/windows/apply_mihoyo_shortcut.bat +++ b/windows/apply_mihoyo_shortcut.bat @@ -1,6 +1,14 @@ @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION +:: Start as administrator +fltmc >NUL 2>&1 || ( + PowerShell Start -Verb RunAs '%0' 2>NUL || ( + EXIT 1 + ) + EXIT 0 +) + SET "collapse=%LOCALAPPDATA%\CollapseLauncher\current" SET "exe=CollapseLauncher.exe" SET "iconpath=Assets\Images\GameIcon"