mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Dropped support for running as a service on windows; it may be back in some form later. Otherwise there should be no functional changes. --HG-- branch : trunk
32 lines
746 B
C++
32 lines
746 B
C++
#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));
|
|
}
|
|
};
|