Skip to content

Commit

Permalink
Merge pull request #39 from danielga/fix-infocache-crash
Browse files Browse the repository at this point in the history
Fixed info cache crash
  • Loading branch information
danielga authored Nov 21, 2019
2 parents 5a5519c + b0a7d85 commit e1d4164
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 203 deletions.
6 changes: 5 additions & 1 deletion include/modules/serversecure.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ function serversecure.StringToIP(str)
return ((d * 256 + c) * 256 + b) * 256 + a
end

function serversecure.EnableThreadedSocket()
print("[ServerSecure] serversecure.EnableThreadedSocket is deprecated!")
end

function serversecure.PostInitialize()
print("[ServerSecure] serversecure.PostInitialize is deprecated since it's not needed anymore!")
print("[ServerSecure] serversecure.PostInitialize is deprecated!")
return true
end

Expand Down
4 changes: 2 additions & 2 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ newoption({
value = "path to garrysmod_common directory"
})

local gmcommon = _OPTIONS.gmcommon or os.getenv("GARRYSMOD_COMMON")
assert(gmcommon ~= nil, "you didn't provide a path to your garrysmod_common (https://github.com/danielga/garrysmod_common) directory")
local gmcommon = assert(_OPTIONS.gmcommon or os.getenv("GARRYSMOD_COMMON"),
"you didn't provide a path to your garrysmod_common (https://github.com/danielga/garrysmod_common) directory")
include(path.join(gmcommon, "generator.v2.lua"))

CreateWorkspace({name = "serversecure.core", abi_compatible = true})
Expand Down
4 changes: 2 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ namespace global

LUA->CreateTable( );

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

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

LUA->PushCFunction( GetClientCount );
Expand Down
Loading

0 comments on commit e1d4164

Please sign in to comment.