mirror of
https://github.com/CPunch/gopenfusion.git
synced 2025-10-04 16:50:18 +00:00
added NPCs; added tdata submodule
- use environment variable TDATA_PATH to specify the location of the tdata directory
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
DB_USER
|
||||
DB_PASS
|
||||
ANNOUNCE_IP
|
||||
TDATA_PATH
|
||||
*/
|
||||
|
||||
const (
|
||||
@@ -78,3 +79,7 @@ func GetDBPass() string {
|
||||
func GetAnnounceIP() string {
|
||||
return getEnv("ANNOUNCE_IP", "127.0.0.1")
|
||||
}
|
||||
|
||||
func GetTDataPath() string {
|
||||
return getEnv("TDATA_PATH", "./tdata")
|
||||
}
|
||||
|
Reference in New Issue
Block a user