mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 12:43:33 +00:00
Add -nolua command line parameter
Disables loading Lua scripts entirely.
This commit is contained in:
parent
4588a20a95
commit
542e5b1cdf
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include "doomstat.h"
|
||||
#include "g_state.h"
|
||||
#include "m_argv.h"
|
||||
|
||||
lua_State *gL = NULL;
|
||||
|
||||
|
|
@ -579,6 +580,12 @@ void LUA_LoadLump(UINT16 wad, UINT16 lump, boolean noresults)
|
|||
MYFILE f;
|
||||
char *name;
|
||||
size_t len;
|
||||
|
||||
if (M_CheckParm("-nolua"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
f.wad = wad;
|
||||
f.size = W_LumpLengthPwad(wad, lump);
|
||||
f.data = Z_Malloc(f.size, PU_LUA, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue