mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added option to change the DATA_PATH via CLI argument data-path=<directory>
This commit is contained in:
parent
c60e15a682
commit
a3e141672a
6 changed files with 34 additions and 33 deletions
|
|
@ -29,6 +29,7 @@ the Free Software Foundation, either version 3 of the License, or
|
|||
require_once(dirname(__FILE__)."/config.php");
|
||||
require_once(FILE_PATH."/src/functions.php");
|
||||
/***REM_END***/
|
||||
define(DATA_PATH, realpath(arg("data-path", FILE_PATH))."/");
|
||||
|
||||
if(strpos(strtoupper(php_uname("s")), "WIN") === false or arg("enable-ansi", false) === true){
|
||||
define("ENABLE_ANSI", true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue