MCPcopy Create free account
hub / github.com/LUX-Core/lux / FormatVersion

Function FormatVersion

src/clientversion.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81const std::string CLIENT_DATE(BUILD_DATE);
82
83static std::string FormatVersion(int nVersion)
84{
85 if (nVersion % 100 == 0)
86 return strprintf("%d.%d.%d", nVersion / 1000000, (nVersion / 10000) % 100, (nVersion / 100) % 100);
87 else
88 return strprintf("%d.%d.%d.%d", nVersion / 1000000, (nVersion / 10000) % 100, (nVersion / 100) % 100, nVersion % 100);
89}
90
91std::string FormatFullVersion()
92{

Callers 1

FormatSubVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected