diff options
author | Brian <runningnak3d@gmail.com> | 2009-12-20 22:30:32 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2009-12-20 22:30:32 -0700 |
commit | 85a89ab3017cf62575b1ad167a7eec4facade71d (patch) | |
tree | 8c37cd7651b7786bb1578692c5112e6194dd4231 | |
parent | 5ae3686d710784cab9fe4fd4ac6134ade607b707 (diff) |
* Added missing file in rev 6678 AuthCodes.cpp
--HG--
branch : trunk
-rw-r--r-- | src/trinityrealm/AuthCodes.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/trinityrealm/AuthCodes.cpp b/src/trinityrealm/AuthCodes.cpp new file mode 100644 index 00000000000..812949e0823 --- /dev/null +++ b/src/trinityrealm/AuthCodes.cpp @@ -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)); +} + +}; |