mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Detect Mac OS
This commit is contained in:
parent
96bac5aaec
commit
0bea6e8051
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ abstract class Utils{
|
||||||
$uname = strtoupper(php_uname("s"));
|
$uname = strtoupper(php_uname("s"));
|
||||||
if(strpos($uname, "WIN") !== false){
|
if(strpos($uname, "WIN") !== false){
|
||||||
return "win";
|
return "win";
|
||||||
|
}elseif(strpos($uname, "DARWIN") !== false){
|
||||||
|
return "mac";
|
||||||
}else{
|
}else{
|
||||||
return "linux";
|
return "linux";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue