Update commit
This commit is contained in:
parent
90c0d0d0aa
commit
3c6431405a
|
@ -84,6 +84,8 @@ static void path_translate(char *result, const char *version)
|
||||||
{
|
{
|
||||||
// Just combine the release file path and filename
|
// Just combine the release file path and filename
|
||||||
std::string path;
|
std::string path;
|
||||||
|
|
||||||
|
// Get the major version number
|
||||||
std::string tmp_str = std::string(version);
|
std::string tmp_str = std::string(version);
|
||||||
size_t pos = tmp_str.find_first_of(".");
|
size_t pos = tmp_str.find_first_of(".");
|
||||||
std::string version_major = tmp_str.substr(0, pos);
|
std::string version_major = tmp_str.substr(0, pos);
|
||||||
|
|
Loading…
Reference in New Issue