Skip to content

Commit

Permalink
Fix a few startup errors + allow Elywing phars
Browse files Browse the repository at this point in the history
  • Loading branch information
Apple authored Dec 20, 2016
1 parent 8f498ca commit 2d5aae7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions start.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ if exist bin\php\php.exe (
set PHP_BINARY=php
)

if exist PocketMine-MP.phar (
set POCKETMINE_FILE=PocketMine-MP.phar
if exist Elywing*.phar (
set POCKETMINE_FILE=Elywing*.phar
) else (
if exist Elywing.phar (
set POCKETMINE_FILE=Elywing.phar
) else (
if exist src\pocketmine\PocketMine.php (
set POCKETMINE_FILE=src\pocketmine\PocketMine.php
) else (
echo "Couldn't find a valid PocketMine-MP installation"
echo "Couldn't find a valid Elywing installation"
pause
exit 1
)
Expand All @@ -25,7 +28,7 @@ REM if exist bin\php\php_wxwidgets.dll (
REM %PHP_BINARY% %POCKETMINE_FILE% --enable-gui %*
REM ) else (
if exist bin\mintty.exe (
start "" bin\mintty.exe -o Columns=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o Font="DejaVu Sans Mono" -o FontHeight=10 -o CursorType=0 -o CursorBlinks=1 -h error -t "PocketMine-MP" -i bin/pocketmine.ico -w max %PHP_BINARY% %POCKETMINE_FILE% --enable-ansi %*
start "" bin\mintty.exe -o Columns=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o Font="Consolas" -o FontHeight=10 -o CursorType=0 -o CursorBlinks=1 -h error -t "Elywing" -w max %PHP_BINARY% %POCKETMINE_FILE% --enable-ansi %*
) else (
%PHP_BINARY% -c bin\php %POCKETMINE_FILE% %*
)
Expand Down

0 comments on commit 2d5aae7

Please sign in to comment.