Lua: client.getversion() - #1314

fix #1271
This commit is contained in:
Asnivor 2018-09-10 17:24:36 +01:00 committed by feos
parent bd26f73516
commit 3e8326da50
2 changed files with 10 additions and 2 deletions

View File

@ -391,6 +391,13 @@ namespace BizHawk.Client.EmuHawk
return GlobalWin.MainForm.DesktopLocation.Y;
}
[LuaMethodExample("local incbhver = client.getversion( );")]
[LuaMethod("getversion", "Returns the current stable BizHawk version")]
public static string GetVersion()
{
return VersionInfo.Mainversion;
}
[LuaMethodExample("local nlcliget = client.getavailabletools( );")]
[LuaMethod("getavailabletools", "Returns a list of the tools currently open")]
public LuaTable GetAvailableTools()

View File

@ -2,8 +2,9 @@ using System.IO;
internal static class VersionInfo
{
public const string Mainversion = "2.0.0"; // Use numbers only or the new version notification won't work
public static readonly string RELEASEDATE = "June 25, 2017";
// keep this updated at every major release
public const string Mainversion = "2.3.0"; // Use numbers only or the new version notification won't work
public static readonly string RELEASEDATE = "June 24, 2018";
public static readonly bool DeveloperBuild = true;
public static readonly string HomePage = "http://tasvideos.org/BizHawk.html";