1
This commit is contained in:
parent
8ef28cf556
commit
c73efe1f71
@ -11,12 +11,14 @@ void JsonDataMgr::Init()
|
|||||||
{
|
{
|
||||||
if (!f8::IsOnlineEnv()) {
|
if (!f8::IsOnlineEnv()) {
|
||||||
if (f8::IsTestEnv()) {
|
if (f8::IsTestEnv()) {
|
||||||
work_path_ = a8::Format("../../../conf_test/game%d/wsproxy.test",
|
work_path_ = a8::Format
|
||||||
|
("../../../conf_test/game%d/wsproxy.test",
|
||||||
{
|
{
|
||||||
GAME_ID,
|
GAME_ID,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
work_path_ = a8::Format("../../../conf_test/game%d/wsproxy.dev",
|
work_path_ = a8::Format
|
||||||
|
("../../../conf_test/game%d/wsproxy.dev",
|
||||||
{
|
{
|
||||||
GAME_ID
|
GAME_ID
|
||||||
});
|
});
|
||||||
@ -26,19 +28,22 @@ void JsonDataMgr::Init()
|
|||||||
std::string wsproxyserver_cluster_json_file;
|
std::string wsproxyserver_cluster_json_file;
|
||||||
std::string masterserver_cluster_json_file;
|
std::string masterserver_cluster_json_file;
|
||||||
std::string routing_tables_json_file;
|
std::string routing_tables_json_file;
|
||||||
wsproxyserver_cluster_json_file = a8::Format("%s/node%d/game%d.wsproxy.cluster.json",
|
wsproxyserver_cluster_json_file = a8::Format
|
||||||
|
("%s/node%d/game%d.wsproxy.cluster.json",
|
||||||
{
|
{
|
||||||
work_path_,
|
work_path_,
|
||||||
App::Instance()->GetNodeId(),
|
App::Instance()->GetNodeId(),
|
||||||
GAME_ID
|
GAME_ID
|
||||||
});
|
});
|
||||||
masterserver_cluster_json_file = a8::Format("%s/node%d/game%d.masterserver.cluster.json",
|
masterserver_cluster_json_file = a8::Format
|
||||||
|
("%s/node%d/game%d.masterserver.cluster.json",
|
||||||
{
|
{
|
||||||
work_path_,
|
work_path_,
|
||||||
App::Instance()->GetNodeId(),
|
App::Instance()->GetNodeId(),
|
||||||
GAME_ID
|
GAME_ID
|
||||||
});
|
});
|
||||||
routing_tables_json_file = a8::Format("%s/routing_tables.json",
|
routing_tables_json_file = a8::Format
|
||||||
|
("%s/routing_tables.json",
|
||||||
{
|
{
|
||||||
work_path_
|
work_path_
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user