Skip to content
Snippets Groups Projects
Commit 2deea188 authored by Luna's avatar Luna
Browse files

Load LUA script lumps by markers

using LU_START -> LU_END to make a range of scripts to load, pointless
but more options???
parent df6281f9
Branches
No related tags found
No related merge requests found
...@@ -145,6 +145,21 @@ static inline void W_LoadDehackedLumps(UINT16 wadnum) ...@@ -145,6 +145,21 @@ static inline void W_LoadDehackedLumps(UINT16 wadnum)
if (memcmp(lump_p->name,"LUA_",4)==0) if (memcmp(lump_p->name,"LUA_",4)==0)
LUA_LoadLump(wadnum, lump); LUA_LoadLump(wadnum, lump);
} }
//Load a lua block by markers?
{
UINT16 l_start, l_end;
l_start = W_CheckNumForNamePwad("LU_START", wadnum, 0);
l_end = W_CheckNumForNamePwad("LU_END",wadnum,l_start);
if (l_start != INT16_MAX && l_end != INT16_MAX && l_start < l_end)
{
for (lump = l_start+1; lump < l_end; lump++)
LUA_LoadLump(wadnum, lump);
CONS_Printf("does it work.....................");
}
}
#endif #endif
// Check for MAINCFG // Check for MAINCFG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment