1
This commit is contained in:
parent
c53bd1dbd9
commit
fc9bd730cd
@ -7,13 +7,22 @@
|
||||
|
||||
void JsonDataMgr::Init()
|
||||
{
|
||||
if (!f8::IsOnlineEnv() && App::Instance()->HasFlag(2)) {
|
||||
work_path_ = a8::Format("/root/pub/%d/%d/conf_test/game%d/gameserver",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
GAME_ID
|
||||
});
|
||||
if (!f8::IsOnlineEnv()) {
|
||||
if (f8::IsTestEnv()) {
|
||||
work_path_ = a8::Format("/root/pub/%d/%d/conf_test/game%d/gameserver.test",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
GAME_ID
|
||||
});
|
||||
} else {
|
||||
work_path_ = a8::Format("/root/pub/%d/%d/conf_test/game%d/gameserver.dev",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
GAME_ID
|
||||
});
|
||||
}
|
||||
}
|
||||
std::string gameserver_cluster_json_file;
|
||||
gameserver_cluster_json_file = a8::Format("%s/node%d/game%d.gameserver.cluster.json",
|
||||
|
@ -75,15 +75,20 @@ public:
|
||||
void Load()
|
||||
{
|
||||
if (!f8::IsOnlineEnv()) {
|
||||
if (App::Instance()->HasFlag(2)) {
|
||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/gameserver/res/",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
GAME_ID
|
||||
});
|
||||
if (f8::IsTestEnv()) {
|
||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/gameserver.test/res/",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
GAME_ID
|
||||
});
|
||||
} else {
|
||||
res_path = a8::Format("/var/data/conf_test/game%d/gameserver/res/", {GAME_ID});
|
||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/gameserver.dev/res/",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
GAME_ID
|
||||
});
|
||||
}
|
||||
} else {
|
||||
res_path = "../res/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user