aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/VersionInfo.cs
diff options
context:
space:
mode:
authorlbsa712009-05-26 16:01:06 +0000
committerlbsa712009-05-26 16:01:06 +0000
commit5d23ecebeb971b78b8a9847b6be634bf0f48c359 (patch)
treef7e69d1f947ab3c71bbfbff495f564775ff0515a /OpenSim/Framework/Servers/VersionInfo.cs
parent* slowly getting there... (diff)
downloadopensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.zip
opensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.tar.gz
opensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.tar.bz2
opensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.tar.xz
* Introduced GetVersionString so we can harness the whole thing.
* Introduced 'Flavour' to spice things up.
Diffstat (limited to 'OpenSim/Framework/Servers/VersionInfo.cs')
-rw-r--r--OpenSim/Framework/Servers/VersionInfo.cs16
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;