v1.0.13.1 (first post-1.0 patch)
This commit is contained in:
+3
-1
@@ -125,9 +125,11 @@ namespace Barotrauma
|
||||
|
||||
public static string IncrementModVersion(string modVersion)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(modVersion)) { return string.Empty; }
|
||||
|
||||
//look for an integer at the end of the string and increment it
|
||||
int startIndex = modVersion.Length - 1;
|
||||
while (char.IsDigit(modVersion[startIndex])) { startIndex--; }
|
||||
while (startIndex > 0 && char.IsDigit(modVersion[startIndex])) { startIndex--; }
|
||||
startIndex++;
|
||||
|
||||
if (startIndex >= modVersion.Length
|
||||
|
||||
Reference in New Issue
Block a user