flags2
This commit is contained in:
parent
7d330ccb13
commit
18eb82bc81
@ -9,7 +9,15 @@ void JsonDataMgr::Init()
|
||||
{
|
||||
std::string gameserver_cluster_json_file;
|
||||
if (!f8::IsOnlineEnv()) {
|
||||
gameserver_cluster_json_file = a8::Format("/var/data/conf_test/game%d/gameserver/game%d.gameserver.cluster.json", {GAME_ID, GAME_ID});
|
||||
if (App::Instance()->flags.find(2) != App::Instance()->flags.end()) {
|
||||
gameserver_cluster_json_file = a8::Format("/root/pub/conf_test/game%d/gameserver/"
|
||||
"game%d.gameserver.cluster.json",
|
||||
{GAME_ID, GAME_ID});
|
||||
} else {
|
||||
gameserver_cluster_json_file = a8::Format("/var/data/conf_test/game%d/gameserver/"
|
||||
"game%d.gameserver.cluster.json",
|
||||
{GAME_ID, GAME_ID});
|
||||
}
|
||||
} else {
|
||||
gameserver_cluster_json_file = a8::Format("../config/game%d.gameserver.cluster.json", {GAME_ID});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user