mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Added Android, BSD detection to Utils::getOS()
This commit is contained in:
parent
0e1c099906
commit
7ebaf7e552
@ -97,10 +97,16 @@ class Utils{
|
||||
}else{
|
||||
return "mac";
|
||||
}
|
||||
}elseif(stripos($uname, "Win") !== false){
|
||||
}elseif(stripos($uname, "Win") !== false or $uname === "Msys"){
|
||||
return "win";
|
||||
}elseif(stripos($uname, "Linux") !== false){
|
||||
return "linux";
|
||||
if(@file_exists("/system/build.prop")){
|
||||
return "android";
|
||||
}else{
|
||||
return "linux";
|
||||
}
|
||||
}elseif(stripos($uname, "BSD") !== false or $uname === "DragonFly"){
|
||||
return "bsd";
|
||||
}else{
|
||||
return "other";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user