mirror of https://github.com/ppy/osu
Add note about substring usage
This commit is contained in:
parent
3f1b9edabe
commit
115ea244be
|
@ -33,6 +33,7 @@ public override Version AssemblyVersion
|
|||
if (Build.VERSION.SdkInt >= BuildVersionCodes.P)
|
||||
{
|
||||
versionName = packageInfo.LongVersionCode.ToString();
|
||||
// ensure we only read the trailing portion of long (the part we are interested in).
|
||||
versionName = versionName.Substring(versionName.Length - 9);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue