From c2d9e7bd4a51f885f0fa3119738b440652aa07e0 Mon Sep 17 00:00:00 2001 From: black Date: Sun, 19 Dec 2004 14:40:34 +0000 Subject: [PATCH] -Added the cvar sv_progs, which allows you to set the name of the server progs file. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4870 d7cf8633-e32d-0410-b094-e92efae38249 --- pr_edict.c | 9 ++++++--- progs.h | 2 +- sv_main.c | 5 ++++- todo | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pr_edict.c b/pr_edict.c index 62688275..2ea21f97 100644 --- a/pr_edict.c +++ b/pr_edict.c @@ -1289,13 +1289,16 @@ PR_LoadProgs =============== */ extern void PR_Cmd_Reset (void); -void PR_LoadProgs (void) +void PR_LoadProgs (const char *progsname) { int i; dstatement_t *st; ddef_t *infielddefs; dfunction_t *dfunctions; + if (!progsname || !*progsname) + Host_Error("PR_LoadProgs: passed empty progsname"); + // flush the non-C variable lookup cache for (i=0 ; i