mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-22 07:08:11 +00:00
Fix server launcher
This commit is contained in:
parent
a4c33584a0
commit
603b919254
@ -34,6 +34,7 @@
|
||||
"introSen3": "Would you like to run the proxy installer?",
|
||||
"introSen4": "(required to connect to servers)",
|
||||
|
||||
"updateBtn": "Update",
|
||||
"proxyInstallBtn": "Install",
|
||||
"proxyInstallDeny": "No thanks",
|
||||
|
||||
|
@ -13,15 +13,9 @@ goto l
|
||||
set "X=%X:~0,-1%"
|
||||
set "GRASSCUTTER_ROOT=%X%"
|
||||
|
||||
:: Ensure admin
|
||||
>nul 2>&1 reg query "HKU\S-1-5-19" || (
|
||||
set params = %*:"="""%
|
||||
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 "%1"", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
|
||||
)
|
||||
|
||||
echo Starting local Grasscutter server...
|
||||
|
||||
:: Change dir to server directory
|
||||
cd /d "%GRASSCUTTER_ROOT%"
|
||||
|
||||
start /b java -jar %GRASSCUTTER_JAR%
|
||||
call java -jar %GRASSCUTTER_JAR%
|
Loading…
Reference in New Issue
Block a user