mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
New starting scripts for mintty
This commit is contained in:
parent
809076b7d7
commit
b297ba16ed
2 changed files with 5 additions and 12 deletions
14
start.cmd
14
start.cmd
|
|
@ -1,7 +1,5 @@
|
|||
@echo off
|
||||
TITLE PocketMine-MP server software for Minecraft: Pocket Edition
|
||||
COLOR 0F
|
||||
mode con: cols=110
|
||||
cd /d %~dp0
|
||||
FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i
|
||||
if not "%PHPOUTPUT%"=="1" (
|
||||
|
|
@ -10,20 +8,16 @@ echo [INFO] Please use the Windows installer from the homepage
|
|||
pause
|
||||
) else (
|
||||
if exist php.cmd (
|
||||
if exist bin\ansicon.exe (
|
||||
bin\ansicon.exe php.cmd -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
||||
if exist bin\mintty.exe (
|
||||
start "" bin\mintty.exe -h error -t "PocketMine-MP" -i bin/pocketmine.ico -w max php.cmd -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
||||
) else (
|
||||
php.cmd -d enable_dl=On PocketMine-MP.php %*
|
||||
)
|
||||
) else (
|
||||
if exist bin\ansicon.exe (
|
||||
bin\ansicon.exe php -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
||||
if exist bin\mintty.exe (
|
||||
start "" bin\mintty.exe -o Columns=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o CursorType=0 -o CursorBlinks=1 -h never -t "PocketMine-MP" -i bin/pocketmine.ico -w max php -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
||||
) else (
|
||||
php -d enable_dl=On PocketMine-MP.php %*
|
||||
)
|
||||
)
|
||||
|
||||
if errorlevel 1 (
|
||||
pause
|
||||
)
|
||||
)
|
||||
|
|
|
|||
3
start.sh
3
start.sh
|
|
@ -9,5 +9,4 @@ fi
|
|||
if [ -f ./bin/php ]; then
|
||||
./bin/php -d enable_dl=On PocketMine-MP.php $@
|
||||
fi
|
||||
php -d enable_dl=On PocketMine-MP.php $@
|
||||
exit 0
|
||||
php -d enable_dl=On PocketMine-MP.php $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue