Skip to content

Commit

Permalink
Lua: client.getversion() - #1314
Browse files Browse the repository at this point in the history
fix #1271
  • Loading branch information
Asnivor authored and vadosnaprimer committed Sep 10, 2018
1 parent bd26f73 commit 3e8326d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Expand Up @@ -391,6 +391,13 @@ public static int Ypos()
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()
Expand Down
5 changes: 3 additions & 2 deletions Version/VersionInfo.cs
Expand Up @@ -2,8 +2,9 @@

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";

Expand Down

0 comments on commit 3e8326d

Please sign in to comment.