File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
extern " C" int luaopen_socket_core ( lua_State *state );
4
4
5
- int parseWhitelist (GarrysMod::Lua::ILuaBase* LUA );
5
+ int parseWhitelist ();
6
6
enum : int
7
7
{
8
8
PARSE_SUCCESS = 0 ,
@@ -13,7 +13,7 @@ enum : int
13
13
GMOD_MODULE_OPEN ( )
14
14
{
15
15
#ifdef USE_WHITELIST
16
- switch (parseWhitelist (LUA ))
16
+ switch (parseWhitelist ())
17
17
{
18
18
case PARSE_SUCCESS:
19
19
break ;
Original file line number Diff line number Diff line change 1
1
#undef getaddrinfo
2
2
3
- #include < GarrysMod/Lua/Interface.h>
4
-
5
3
#include " socket.h"
6
4
#include < vector>
7
5
#include < fstream>
@@ -19,7 +17,7 @@ enum : int
19
17
PARSE_NO_ENTRIES = 2
20
18
};
21
19
22
- int parseWhitelist (GarrysMod::Lua::ILuaBase* LUA )
20
+ int parseWhitelist ()
23
21
{
24
22
std::ifstream input (whitelistDir);
25
23
if (input)
You can’t perform that action at this time.
0 commit comments