* Added missing file in rev 6678 AuthCodes.cpp
--HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
#include "AuthCodes.h"
|
||||||
|
|
||||||
|
namespace AuthHelper
|
||||||
|
{
|
||||||
|
|
||||||
|
bool IsPreBCAcceptedClientBuild(int build)
|
||||||
|
{
|
||||||
|
int accepted_versions[] = PRE_BC_ACCEPTED_CLIENT_BUILD;
|
||||||
|
for (int i = 0; accepted_versions[i]; ++i)
|
||||||
|
{
|
||||||
|
if (build == accepted_versions[i])
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsPostBCAcceptedClientBuild(int build)
|
||||||
|
{
|
||||||
|
int accepted_versions[] = POST_BC_ACCEPTED_CLIENT_BUILD;
|
||||||
|
for (int i = 0; accepted_versions[i]; ++i)
|
||||||
|
{
|
||||||
|
if (build == accepted_versions[i])
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsAcceptedClientBuild(int build)
|
||||||
|
{
|
||||||
|
return (IsPostBCAcceptedClientBuild(build) || IsPreBCAcceptedClientBuild(build));
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user