MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetClientType

Function GetClientType

src/Config.cpp:211–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211static CLIENT_FLAG GetClientType(uint32_t version)
212{
213 if (version < CV_200)
214 {
215 return CF_T2A;
216 }
217 if (version < CV_300)
218 {
219 return CF_RE;
220 }
221 if (version < CV_308)
222 {
223 return CF_TD;
224 }
225 if (version < CV_308Z)
226 {
227 return CF_LBR;
228 }
229 if (version < CV_405A)
230 {
231 // >=3.0.8z
232 return CF_AOS;
233 }
234 if (version < CV_60144)
235 {
236 return CF_SE;
237 }
238 return CF_SA;
239}
240
241// Reference: https://github.com/polserver/polserver/blob/5c747bb88123945bb892d3d793b89afcb1dc645a/pol-core/pol/crypt/cryptkey.cpp
242static void SetClientCrypt(uint32_t version)

Callers 1

ClientVersionFixupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected