File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -3008,20 +3008,15 @@ Redirects one to the given URL and returns the given code.
30083008Sets the given value for the given key in the header.
30093009
30103010## luajit
3011- This module implement some luajit related changes.
3011+ This module updates luajit to a newer version.
3012+
3013+ > [ !NOTE]
3014+ > By default this module is disabled.
3015+ > You can enable it by adding ` -holylib_enable_luajit 1 ` to the command line.
30123016
30133017The ` ffi ` and ` string.buffer ` packages are already added when enabled.
30143018It also restores ` debug.setlocal ` , ` debug.setupvalue ` , ` debug.upvalueid ` and ` debug.upvaluejoin ` .
30153019
3016- ### ConVars
3017-
3018- #### holylib_jit_update (default 0)
3019- Updates luajit to a newer version.
3020-
3021- > [ !NOTE]
3022- > By default this is disabled.
3023- > You can enable it by adding ` +holylib_enable_luajit 1 ` to the command line.
3024-
30253020# Unfinished Modules
30263021
30273022## serverplugins
Original file line number Diff line number Diff line change @@ -12,10 +12,9 @@ class CLuaJITModule : public IModule
1212 virtual void InitDetour (bool bPreServer) OVERRIDE;
1313 virtual const char * Name () { return " luajit" ; };
1414 virtual int Compatibility () { return LINUX32; };
15+ virtual bool IsEnabledByDefault () { return false ; };
1516};
1617
17- static ConVar jit_update (" holylib_jit_update" , " 0" , 0 );
18-
1918CLuaJITModule g_pLuaJITModule;
2019IModule* pLuaJITModule = &g_pLuaJITModule;
2120
@@ -101,9 +100,6 @@ void CLuaJITModule::InitDetour(bool bPreServer)
101100 if (bPreServer)
102101 return ;
103102
104- if (!jit_update.GetBool ())
105- return ;
106-
107103 SourceSDK::ModuleLoader lua_shared_loader (" lua_shared" );
108104 // Override(luaJIT_version_2_0_4);
109105 Override (luaJIT_setmode);
You can’t perform that action at this time.
0 commit comments