Files
TCPlayerbotCore/src/server/authserver/Authentication/AuthCodes.cpp
T

34 lines
668 B
C++
Raw Normal View History

#include "AuthCodes.h"
namespace AuthHelper
{
bool IsPreBCAcceptedClientBuild(int build)
{
int accepted_versions[] = PRE_BC_ACCEPTED_CLIENT_BUILD;
2010-12-04 11:19:41 -08:00
for (int i = 0; accepted_versions[i]; ++i)
if (build == accepted_versions[i])
return true;
2010-12-04 11:19:41 -08:00
return false;
}
bool IsPostBCAcceptedClientBuild(int build)
{
int accepted_versions[] = POST_BC_ACCEPTED_CLIENT_BUILD;
2010-12-04 11:19:41 -08:00
for (int i = 0; accepted_versions[i]; ++i)
if (build == accepted_versions[i])
return true;
2010-12-04 11:19:41 -08:00
return false;
}
bool IsAcceptedClientBuild(int build)
{
return (IsPostBCAcceptedClientBuild(build) || IsPreBCAcceptedClientBuild(build));
}
};