mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
Remove academy-specific tdata settings, add patch path
This commit is contained in:
parent
4bcf3af90f
commit
805fd93b3c
@ -41,8 +41,6 @@ motd=Welcome to OpenFusion!
|
|||||||
#npcdata=tdata/NPCs.json
|
#npcdata=tdata/NPCs.json
|
||||||
# mob json
|
# mob json
|
||||||
#mobdata=tdata/mobs.json
|
#mobdata=tdata/mobs.json
|
||||||
# academy mobs & npcs json
|
|
||||||
#academydata=tdata/1013/academy.json
|
|
||||||
# path json
|
# path json
|
||||||
#pathdata=tdata/paths.json
|
#pathdata=tdata/paths.json
|
||||||
# drop json
|
# drop json
|
||||||
@ -51,6 +49,8 @@ motd=Welcome to OpenFusion!
|
|||||||
#gruntwork=tdata/gruntwork.json
|
#gruntwork=tdata/gruntwork.json
|
||||||
# location of the database
|
# location of the database
|
||||||
#dbpath=database.db
|
#dbpath=database.db
|
||||||
|
# location of the patch folder
|
||||||
|
#patchpath=tdata/patch
|
||||||
|
|
||||||
# should tutorial flags be disabled off the bat?
|
# should tutorial flags be disabled off the bat?
|
||||||
disablefirstuseflag=true
|
disablefirstuseflag=true
|
||||||
|
@ -985,7 +985,7 @@ void TableData::init() {
|
|||||||
fMobs.close();
|
fMobs.close();
|
||||||
fGruntwork.close();
|
fGruntwork.close();
|
||||||
|
|
||||||
// TODO patching system
|
// patching
|
||||||
|
|
||||||
// fetch data from patched tables and load them appropriately
|
// fetch data from patched tables and load them appropriately
|
||||||
// note: the order of these is important
|
// note: the order of these is important
|
||||||
|
@ -38,17 +38,10 @@ std::string settings::EGGSJSON = "tdata/eggs.json";
|
|||||||
std::string settings::GRUNTWORKJSON = "tdata/gruntwork.json";
|
std::string settings::GRUNTWORKJSON = "tdata/gruntwork.json";
|
||||||
std::string settings::MOTDSTRING = "Welcome to OpenFusion!";
|
std::string settings::MOTDSTRING = "Welcome to OpenFusion!";
|
||||||
std::string settings::DBPATH = "database.db";
|
std::string settings::DBPATH = "database.db";
|
||||||
std::string settings::ACADEMYJSON = "tdata/1013/academy.json";
|
std::string settings::PATCHPATH = "tdata/patch";
|
||||||
|
|
||||||
#if PROTOCOL_VERSION == 1013
|
|
||||||
std::string settings::XDTJSON = "tdata/1013/xdt.json";
|
|
||||||
std::string settings::DROPSJSON = "tdata/1013/drops.json";
|
|
||||||
std::string settings::PATHJSON = "tdata/1013/paths.json";
|
|
||||||
#else
|
|
||||||
std::string settings::DROPSJSON = "tdata/drops.json";
|
std::string settings::DROPSJSON = "tdata/drops.json";
|
||||||
std::string settings::XDTJSON = "tdata/xdt.json";
|
std::string settings::XDTJSON = "tdata/xdt.json";
|
||||||
std::string settings::PATHJSON = "tdata/paths.json";
|
std::string settings::PATHJSON = "tdata/paths.json";
|
||||||
#endif
|
|
||||||
|
|
||||||
int settings::ACCLEVEL = 1;
|
int settings::ACCLEVEL = 1;
|
||||||
bool settings::DISABLEFIRSTUSEFLAG = true;
|
bool settings::DISABLEFIRSTUSEFLAG = true;
|
||||||
@ -89,13 +82,13 @@ void settings::init() {
|
|||||||
NPCJSON = reader.Get("shard", "npcdata", NPCJSON);
|
NPCJSON = reader.Get("shard", "npcdata", NPCJSON);
|
||||||
XDTJSON = reader.Get("shard", "xdtdata", XDTJSON);
|
XDTJSON = reader.Get("shard", "xdtdata", XDTJSON);
|
||||||
MOBJSON = reader.Get("shard", "mobdata", MOBJSON);
|
MOBJSON = reader.Get("shard", "mobdata", MOBJSON);
|
||||||
ACADEMYJSON = reader.Get("shard", "academydata", ACADEMYJSON);
|
|
||||||
DROPSJSON = reader.Get("shard", "dropdata", DROPSJSON);
|
DROPSJSON = reader.Get("shard", "dropdata", DROPSJSON);
|
||||||
EGGSJSON = reader.Get("shard", "eggdata", EGGSJSON);
|
EGGSJSON = reader.Get("shard", "eggdata", EGGSJSON);
|
||||||
PATHJSON = reader.Get("shard", "pathdata", PATHJSON);
|
PATHJSON = reader.Get("shard", "pathdata", PATHJSON);
|
||||||
GRUNTWORKJSON = reader.Get("shard", "gruntwork", GRUNTWORKJSON);
|
GRUNTWORKJSON = reader.Get("shard", "gruntwork", GRUNTWORKJSON);
|
||||||
MOTDSTRING = reader.Get("shard", "motd", MOTDSTRING);
|
MOTDSTRING = reader.Get("shard", "motd", MOTDSTRING);
|
||||||
DBPATH = reader.Get("shard", "dbpath", DBPATH);
|
DBPATH = reader.Get("shard", "dbpath", DBPATH);
|
||||||
|
PATCHPATH = reader.Get("shard", "patchpath", PATCHPATH);
|
||||||
ACCLEVEL = reader.GetInteger("shard", "accountlevel", ACCLEVEL);
|
ACCLEVEL = reader.GetInteger("shard", "accountlevel", ACCLEVEL);
|
||||||
EVENTMODE = reader.GetInteger("shard", "eventmode", EVENTMODE);
|
EVENTMODE = reader.GetInteger("shard", "eventmode", EVENTMODE);
|
||||||
DISABLEFIRSTUSEFLAG = reader.GetBoolean("shard", "disablefirstuseflag", DISABLEFIRSTUSEFLAG);
|
DISABLEFIRSTUSEFLAG = reader.GetBoolean("shard", "disablefirstuseflag", DISABLEFIRSTUSEFLAG);
|
||||||
|
@ -19,12 +19,12 @@ namespace settings {
|
|||||||
extern std::string NPCJSON;
|
extern std::string NPCJSON;
|
||||||
extern std::string XDTJSON;
|
extern std::string XDTJSON;
|
||||||
extern std::string MOBJSON;
|
extern std::string MOBJSON;
|
||||||
extern std::string ACADEMYJSON;
|
|
||||||
extern std::string PATHJSON;
|
extern std::string PATHJSON;
|
||||||
extern std::string DROPSJSON;
|
extern std::string DROPSJSON;
|
||||||
extern std::string EGGSJSON;
|
extern std::string EGGSJSON;
|
||||||
extern std::string GRUNTWORKJSON;
|
extern std::string GRUNTWORKJSON;
|
||||||
extern std::string DBPATH;
|
extern std::string DBPATH;
|
||||||
|
extern std::string PATCHPATH;
|
||||||
extern int EVENTMODE;
|
extern int EVENTMODE;
|
||||||
extern bool MONITORENABLED;
|
extern bool MONITORENABLED;
|
||||||
extern int MONITORPORT;
|
extern int MONITORPORT;
|
||||||
|
Loading…
Reference in New Issue
Block a user