diff options
author | Edgars Cīrulis <edgarsscirulis@gmail.com> | 2023-01-15 13:18:13 +0200 |
---|---|---|
committer | Edgars Cīrulis <edgarsscirulis@gmail.com> | 2023-01-17 07:14:05 +0200 |
commit | 6fb837c529ce838efabd1899a5803c124013fbf7 (patch) | |
tree | 1a5bc86427fa619906837bb9ff4573145feec0f8 | |
parent | c0c3892064a775b13fd5cae00f58b43bee062003 (diff) | |
download | PrismLauncher-6fb837c529ce838efabd1899a5803c124013fbf7.tar.gz PrismLauncher-6fb837c529ce838efabd1899a5803c124013fbf7.tar.bz2 PrismLauncher-6fb837c529ce838efabd1899a5803c124013fbf7.zip |
Version.cpp: Add version string parser to split on '.' character
Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
-rw-r--r-- | launcher/Version.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/Version.cpp b/launcher/Version.cpp index 5d814a25..9481716d 100644 --- a/launcher/Version.cpp +++ b/launcher/Version.cpp @@ -96,7 +96,7 @@ void Version::parse() currentSection += m_string[i]; lastCharWasDigit = false; } - else if(m_string[i] == '-' || m_string[i] == '_'){ + else if(m_string[i] == '.' || m_string[i] == '-' || m_string[i] == '_'){ if(!currentSection.isEmpty()){ m_sections.append(Section(currentSection)); } |