Disable wad loading in TESTERS build

This commit is contained in:
James R 2022-01-02 21:50:23 -08:00
parent a5d219ad6e
commit 72f9121f5d
2 changed files with 4 additions and 0 deletions

View file

@ -1256,6 +1256,7 @@ void D_SRB2Main(void)
// Do this up here so that WADs loaded through the command line can use ExecCfg
COM_Init();
#ifndef TESTERS
// add any files specified on the command line with -file wadfile
// to the wad list
if (!((M_GetUrlProtocolArg() || M_CheckParm("-connect")) && !M_CheckParm("-server")))
@ -1273,6 +1274,7 @@ void D_SRB2Main(void)
}
}
}
#endif
// get map from parms

View file

@ -3866,6 +3866,7 @@ static void Got_RunSOCcmd(UINT8 **cp, INT32 playernum)
*/
static void Command_Addfile(void)
{
#ifndef TESTERS
size_t argc = COM_Argc(); // amount of arguments total
size_t curarg; // current argument index
@ -3995,6 +3996,7 @@ static void Command_Addfile(void)
else
SendNetXCmd(XD_ADDFILE, buf, buf_p - buf);
}
#endif/*TESTERS*/
}
static void Got_RequestAddfilecmd(UINT8 **cp, INT32 playernum)