diff options
Diffstat (limited to 'OpenSim/Framework/Servers/VersionInfo.cs')
-rw-r--r-- | OpenSim/Framework/Servers/VersionInfo.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/VersionInfo.cs b/OpenSim/Framework/Servers/VersionInfo.cs index 200f0e2..56f9148 100644 --- a/OpenSim/Framework/Servers/VersionInfo.cs +++ b/OpenSim/Framework/Servers/VersionInfo.cs | |||
@@ -29,11 +29,25 @@ namespace OpenSim | |||
29 | { | 29 | { |
30 | public class VersionInfo | 30 | public class VersionInfo |
31 | { | 31 | { |
32 | private enum Flavour | ||
33 | { | ||
34 | Unknown, | ||
35 | Dev, | ||
36 | RC1, | ||
37 | RC2, | ||
38 | Release | ||
39 | } | ||
32 | private const string m_versionNumber = "0.6.5"; | 40 | private const string m_versionNumber = "0.6.5"; |
33 | 41 | ||
34 | public static string Version | 42 | public static string Version |
35 | { | 43 | { |
36 | get { return "OpenSimulator Server" + " " + m_versionNumber; } | 44 | get { return GetVersionString(m_versionNumber); } |
45 | } | ||
46 | |||
47 | public static string GetVersionString(string versionNumber) | ||
48 | { | ||
49 | string versionString = "OpenSimulator Server" + versionNumber; | ||
50 | return versionString.PadRight(VERSIONINFO_VERSION_LENGTH); | ||
37 | } | 51 | } |
38 | 52 | ||
39 | public const int VERSIONINFO_VERSION_LENGTH = 27; | 53 | public const int VERSIONINFO_VERSION_LENGTH = 27; |