mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
Get correct Phar path if not specified
This commit is contained in:
parent
0f0b866788
commit
648b23d08f
@ -87,7 +87,11 @@ namespace pocketmine {
|
|||||||
const MINECRAFT_VERSION = "v0.8.1 alpha";
|
const MINECRAFT_VERSION = "v0.8.1 alpha";
|
||||||
const PHP_VERSION = "5.5";
|
const PHP_VERSION = "5.5";
|
||||||
|
|
||||||
@define("pocketmine\\PATH", \getcwd() . DIRECTORY_SEPARATOR);
|
if(\Phar::running(true) !== ""){
|
||||||
|
@define("pocketmine\\PATH", \Phar::running(true)."/");
|
||||||
|
}else{
|
||||||
|
@define("pocketmine\\PATH", \getcwd() . DIRECTORY_SEPARATOR);
|
||||||
|
}
|
||||||
|
|
||||||
if(!class_exists("SplClassLoader", false)){
|
if(!class_exists("SplClassLoader", false)){
|
||||||
require_once(\pocketmine\PATH . "src/spl/SplClassLoader.php");
|
require_once(\pocketmine\PATH . "src/spl/SplClassLoader.php");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user