From b297ba16edd84131f8f0cfad9ed699452ca4d842 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 4 Sep 2013 19:49:32 +0200 Subject: [PATCH] New starting scripts for mintty --- start.cmd | 14 ++++---------- start.sh | 3 +-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/start.cmd b/start.cmd index 313500447..d233b7822 100644 --- a/start.cmd +++ b/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 - ) ) diff --git a/start.sh b/start.sh index 7e0903415..f7f4f5b0d 100755 --- a/start.sh +++ b/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 \ No newline at end of file +php -d enable_dl=On PocketMine-MP.php $@ \ No newline at end of file