cleanup VersionInfo.cs
This commit is contained in:
parent
ee842fbde3
commit
b98d428a64
|
@ -1,8 +1,8 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
static class VersionInfo
|
internal static class VersionInfo
|
||||||
{
|
{
|
||||||
public const string MAINVERSION = "1.11.8"; // Use numbers only or the new version notification won't work
|
public const string Mainversion = "1.11.8"; // Use numbers only or the new version notification won't work
|
||||||
public static readonly string RELEASEDATE = "October 22, 2016";
|
public static readonly string RELEASEDATE = "October 22, 2016";
|
||||||
public static readonly bool DeveloperBuild = true;
|
public static readonly bool DeveloperBuild = true;
|
||||||
public static readonly string HomePage = "http://tasvideos.org/BizHawk.html";
|
public static readonly string HomePage = "http://tasvideos.org/BizHawk.html";
|
||||||
|
@ -11,7 +11,7 @@ static class VersionInfo
|
||||||
|
|
||||||
public static string GetEmuVersion()
|
public static string GetEmuVersion()
|
||||||
{
|
{
|
||||||
return DeveloperBuild ? ("GIT " + SubWCRev.GIT_BRANCH + "#" + SubWCRev.GIT_SHORTHASH) : ("Version " + MAINVERSION);
|
return DeveloperBuild ? ("GIT " + SubWCRev.GIT_BRANCH + "#" + SubWCRev.GIT_SHORTHASH) : ("Version " + Mainversion);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VersionInfo()
|
static VersionInfo()
|
||||||
|
@ -22,16 +22,20 @@ static class VersionInfo
|
||||||
{
|
{
|
||||||
var lines = File.ReadAllLines(path);
|
var lines = File.ReadAllLines(path);
|
||||||
if (lines.Length > 0)
|
if (lines.Length > 0)
|
||||||
|
{
|
||||||
CustomBuildString = lines[0];
|
CustomBuildString = lines[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// code copied to avoid depending on code in otherp rojects
|
// code copied to avoid depending on code in otherp rojects
|
||||||
static string GetExeDirectoryAbsolute()
|
private static string GetExeDirectoryAbsolute()
|
||||||
{
|
{
|
||||||
var path = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
|
var path = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
|
||||||
if (path.EndsWith(Path.DirectorySeparatorChar.ToString()))
|
if (path.EndsWith(Path.DirectorySeparatorChar.ToString()))
|
||||||
|
{
|
||||||
path = path.Remove(path.Length - 1, 1);
|
path = path.Remove(path.Length - 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue