add IsOnLineEnv
This commit is contained in:
parent
d5d9f92e67
commit
088c2dfdc0
@ -191,4 +191,10 @@ namespace f8
|
||||
std::string gameid = strings[1];
|
||||
return a8::XValue(channelid);
|
||||
}
|
||||
|
||||
bool IsOnlineEnv()
|
||||
{
|
||||
return !getenv("SERVER_ENV");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -87,4 +87,6 @@ namespace f8
|
||||
bool IsValidSessionId(const std::string& accountid, const std::string& sessionid);
|
||||
int ExtractGameIdFromAccountId(const std::string& accountid);
|
||||
int ExtractChannelIdFromAccountId(const std::string& accountid);
|
||||
|
||||
bool IsOnlineEnv();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user