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

21 lines
421 B
C++
Raw Normal View History

#include "AuthCodes.h"
namespace AuthHelper
{
2011-12-16 12:55:02 +01:00
bool IsAcceptedBuild(int build)
{
2011-12-16 12:55:02 +01:00
static int accepted_versions[] = TRINITYCORE_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)
{
2011-12-16 12:55:02 +01:00
return (IsAcceptedBuild(build));
}
};