Skip to content

Commit

Permalink
Moved versioning to native module
Browse files Browse the repository at this point in the history
Bumped revision number
  • Loading branch information
danielga committed Jul 3, 2019
1 parent 19c701d commit 4561bb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/modules/serversecure.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ require("serversecure.core")

local format, match, band, rshift = string.format, string.match, bit.band, bit.rshift

serversecure.Version = "serversecure 1.5.22"
serversecure.VersionNum = 10522

function serversecure.IPToString(uint)
if not uint then
return
Expand Down
7 changes: 7 additions & 0 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ namespace global

LUA->CreateTable( );

LUA->PushString( "serversecure 1.5.24" );
LUA->SetField( -2, "Version" );

// version num follows LuaJIT style, xxyyzz
LUA->PushNumber( 10524 );
LUA->SetField( -2, "VersionNum" );

LUA->PushCFunction( GetClientCount );
LUA->SetField( -2, "GetClientCount" );
}
Expand Down

0 comments on commit 4561bb1

Please sign in to comment.