mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
fix server launcher script
This commit is contained in:
parent
bdea511d54
commit
6c0a079a41
@ -3,15 +3,23 @@
|
||||
set GRASSCUTTER_JAR=%1
|
||||
set GRASSCUTTER_JAR=%GRASSCUTTER_JAR:"=%
|
||||
|
||||
title Grasscutter
|
||||
|
||||
:: Get folder the jar is in
|
||||
set "X=%GRASSCUTTER_JAR%"
|
||||
:l
|
||||
if "%X:~-1%"=="\" goto al
|
||||
set "X=%X:~0,-1%"
|
||||
goto l
|
||||
set IS_SLASH=false
|
||||
|
||||
if "%X:~-1%"=="\" set IS_SLASH=true
|
||||
if "%X:~-1%"=="/" set IS_SLASH=true
|
||||
|
||||
if %IS_SLASH% equ true goto al
|
||||
|
||||
set "X=%X:~0,-1%"
|
||||
goto l
|
||||
:al
|
||||
set "X=%X:~0,-1%"
|
||||
set "GRASSCUTTER_ROOT=%X%"
|
||||
set "X=%X:~0,-1%"
|
||||
set "GRASSCUTTER_ROOT=%X%"
|
||||
|
||||
echo Starting local Grasscutter server...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user