mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +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 "doomstat.h"
|
||||||
#include "g_state.h"
|
#include "g_state.h"
|
||||||
|
#include "m_argv.h"
|
||||||
|
|
||||||
lua_State *gL = NULL;
|
lua_State *gL = NULL;
|
||||||
|
|
||||||
|
|
@ -579,6 +580,12 @@ void LUA_LoadLump(UINT16 wad, UINT16 lump, boolean noresults)
|
||||||
MYFILE f;
|
MYFILE f;
|
||||||
char *name;
|
char *name;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
|
if (M_CheckParm("-nolua"))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
f.wad = wad;
|
f.wad = wad;
|
||||||
f.size = W_LumpLengthPwad(wad, lump);
|
f.size = W_LumpLengthPwad(wad, lump);
|
||||||
f.data = Z_Malloc(f.size, PU_LUA, NULL);
|
f.data = Z_Malloc(f.size, PU_LUA, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue