Improved scripts

This commit is contained in:
Shoghi Cervantes 2013-09-04 13:29:27 +02:00
parent 2b24dab57b
commit 160aa3a199
2 changed files with 6 additions and 5 deletions

View File

@ -7,6 +7,7 @@ FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i
if not "%PHPOUTPUT%"=="1" (
echo [ERROR] Couldn't find PHP binary in PATH.
echo [INFO] Please use the Windows installer from the homepage
pause
) else (
if exist php.cmd (
if exist bin\ansicon.exe (
@ -20,6 +21,9 @@ echo [INFO] Please use the Windows installer from the homepage
) else (
php -d enable_dl=On PocketMine-MP.php %*
)
)
)
if errorlevel 1 (
pause
)
)
pause

View File

@ -8,9 +8,6 @@ rm -r -f ./php5/
fi
if [ -f ./bin/php ]; then
./bin/php -d enable_dl=On PocketMine-MP.php $@
read -p "Press [Enter] to continue..."
exit 0
fi
php -d enable_dl=On PocketMine-MP.php $@
read -p "Press [Enter] to continue..."
exit 0