Skip to content

Commit 1c0cbc5

Browse files
committed
jit: change things back since it can't work like that
1 parent c57064b commit 1c0cbc5

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3008,20 +3008,15 @@ Redirects one to the given URL and returns the given code.
30083008
Sets 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
30133017
The `ffi` and `string.buffer` packages are already added when enabled.
30143018
It 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

source/modules/luajit.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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-
1918
CLuaJITModule g_pLuaJITModule;
2019
IModule* 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);

0 commit comments

Comments
 (0)