Update commit

This commit is contained in:
daleclack 2024-07-03 09:29:48 +08:00
parent 90c0d0d0aa
commit 3c6431405a
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ static void path_translate(char *result, const char *version)
{
// Just combine the release file path and filename
std::string path;
// Get the major version number
std::string tmp_str = std::string(version);
size_t pos = tmp_str.find_first_of(".");
std::string version_major = tmp_str.substr(0, pos);