X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=progsvm.h;fp=progsvm.h;h=41c755d6358231fe245253950d26dea17509b195;hb=6f10cbc0e758254cc200332fd61f96d7cc972a48;hp=4c29aa3cd680b0186c9a9534b8825f27baf710c3;hpb=c38d0d2d6409d9b3174b6cf04f1bd09694cbfc81;p=xonotic%2Fdarkplaces.git diff --git a/progsvm.h b/progsvm.h index 4c29aa3c..41c755d6 100644 --- a/progsvm.h +++ b/progsvm.h @@ -593,6 +593,7 @@ typedef struct prvm_prog_s fssearch_t *opensearches[PRVM_MAX_OPENSEARCHES]; const char * opensearches_origin[PRVM_MAX_OPENSEARCHES]; skeleton_t *skeletons[MAX_EDICTS]; + cmd_state_t *console_cmd; // points to the relevant console command interpreter for this vm (&cmd_client or &cmd_server), also used to access cvars // buffer for storing all tempstrings created during one invocation of ExecuteProgram sizebuf_t tempstringsbuf; @@ -855,7 +856,7 @@ Set up the fields marked with [INIT] in the prog struct Load a program with LoadProgs */ // Load expects to be called right after Reset -void PRVM_Prog_Init(prvm_prog_t *prog); +void PRVM_Prog_Init(prvm_prog_t *prog, cmd_state_t *cmd); void PRVM_Prog_Load(prvm_prog_t *prog, const char *filename, unsigned char *data, fs_offset_t size, int numrequiredfunc, const char **required_func, int numrequiredfields, prvm_required_field_t *required_field, int numrequiredglobals, prvm_required_field_t *required_global); void PRVM_Prog_Reset(prvm_prog_t *prog);