1
This commit is contained in:
parent
833a286499
commit
49b96c16a5
@ -7,18 +7,17 @@
|
|||||||
|
|
||||||
void JsonDataMgr::Init()
|
void JsonDataMgr::Init()
|
||||||
{
|
{
|
||||||
if (!f8::IsOnlineEnv() && App::Instance()->HasFlag(2)) {
|
if (!f8::IsOnlineEnv()) {
|
||||||
work_path_ = a8::Format("../../conf_test/%d/%d/conf_test/game%d/gameserver",
|
work_path_ = a8::Format("../../../conf_test",
|
||||||
{
|
{
|
||||||
GAME_ID,
|
|
||||||
App::Instance()->instance_id,
|
|
||||||
GAME_ID
|
GAME_ID
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
std::string gameserver_cluster_json_file;
|
std::string gameserver_cluster_json_file;
|
||||||
gameserver_cluster_json_file = a8::Format("%s/node%d/game%d.gameserver.cluster.json",
|
gameserver_cluster_json_file = a8::Format("%s/game%d/gameserver/node%d/game%d.gameserver.cluster.json",
|
||||||
{
|
{
|
||||||
work_path_,
|
work_path_,
|
||||||
|
GAME_ID,
|
||||||
App::Instance()->node_id,
|
App::Instance()->node_id,
|
||||||
GAME_ID
|
GAME_ID
|
||||||
});
|
});
|
||||||
@ -48,9 +47,10 @@ std::shared_ptr<a8::XObject> JsonDataMgr::GetMasterServerClusterConf()
|
|||||||
void JsonDataMgr::Reload()
|
void JsonDataMgr::Reload()
|
||||||
{
|
{
|
||||||
std::string masterserver_cluster_json_file;
|
std::string masterserver_cluster_json_file;
|
||||||
masterserver_cluster_json_file = a8::Format("%s/node%d/game%d.masterserver.cluster.json",
|
masterserver_cluster_json_file = a8::Format("%s/game%d/gameserver/node%d/game%d.masterserver.cluster.json",
|
||||||
{
|
{
|
||||||
work_path_,
|
work_path_,
|
||||||
|
GAME_ID,
|
||||||
App::Instance()->node_id,
|
App::Instance()->node_id,
|
||||||
GAME_ID
|
GAME_ID
|
||||||
});
|
});
|
||||||
|
@ -40,16 +40,10 @@ public:
|
|||||||
void Load()
|
void Load()
|
||||||
{
|
{
|
||||||
if (!f8::IsOnlineEnv()) {
|
if (!f8::IsOnlineEnv()) {
|
||||||
if (App::Instance()->HasFlag(2)) {
|
res_path = a8::Format("../../../conf_test/game%d/gameserver/res/",
|
||||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/gameserver/res/",
|
{
|
||||||
{
|
GAME_ID,
|
||||||
GAME_ID,
|
});
|
||||||
App::Instance()->instance_id,
|
|
||||||
GAME_ID
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
res_path = a8::Format("/var/data/conf_test/game%d/gameserver/res/", {GAME_ID});
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
res_path = "../res/";
|
res_path = "../res/";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user