New starting scripts for mintty

This commit is contained in:
Shoghi Cervantes 2013-09-04 19:49:32 +02:00
parent 809076b7d7
commit b297ba16ed
2 changed files with 5 additions and 12 deletions

View File

@ -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
)
)

View File

@ -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 $@