MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetVersionMajor

Function GetVersionMajor

Source/Version/version.cpp:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::string GetVersionMajor() {
83 std::vector<std::string> split_string;
84 split(GetShortBuildTag(), '.', split_string);
85
86 if (split_string.size() >= 1) {
87 return split_string[0];
88 } else {
89 return std::string();
90 }
91}
92
93std::string GetVersionMinor() {
94 std::vector<std::string> split_string;

Callers 1

ReloadMethod · 0.85

Calls 3

GetShortBuildTagFunction · 0.85
splitFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected