Unify progdefs.h across all sourceports

This commit is contained in:
cypress 2024-09-02 19:15:55 -07:00
parent ce50b0f8e1
commit e478186199
2 changed files with 81 additions and 88 deletions

View file

@ -1041,11 +1041,6 @@ void PR_LoadProgs (void)
for (i=0 ; i<sizeof(*progs)/4 ; i++) for (i=0 ; i<sizeof(*progs)/4 ; i++)
((int *)progs)[i] = LittleLong ( ((int *)progs)[i] ); ((int *)progs)[i] = LittleLong ( ((int *)progs)[i] );
if (progs->version != PROG_VERSION)
Sys_Error ("progs.dat has wrong version number (%i should be %i)", progs->version, PROG_VERSION);
if (progs->crc != PROGHEADER_CRC)
Con_Printf ("WARNING!!! progs.dat system vars have been modified, progdefs.h is out of date. Current one is %i\n", progs->crc);
pr_functions = (dfunction_t *)((byte *)progs + progs->ofs_functions); pr_functions = (dfunction_t *)((byte *)progs + progs->ofs_functions);
pr_strings = (char *)progs + progs->ofs_strings; pr_strings = (char *)progs + progs->ofs_strings;
pr_globaldefs = (ddef_t *)((byte *)progs + progs->ofs_globaldefs); pr_globaldefs = (ddef_t *)((byte *)progs + progs->ofs_globaldefs);

View file

@ -1,8 +1,8 @@
/* TODO: Use FTEQCC to autogenerate this. */
/* file generated by qcc, do not modify */
typedef struct typedef struct
{ int pad[28]; {
int pad[28];
int self; int self;
int other; int other;
int world; int world;
@ -56,7 +56,7 @@ typedef struct
func_t ClientDisconnect; func_t ClientDisconnect;
func_t SetNewParms; func_t SetNewParms;
func_t SetChangeParms; func_t SetChangeParms;
func_t ParseClientCommand; func_t ParseClientCommand; // special command calls
string_t CMD_STRING; string_t CMD_STRING;
func_t Soft_Restart; func_t Soft_Restart;
} globalvars_t; } globalvars_t;
@ -166,5 +166,3 @@ typedef struct
float facingenemy; float facingenemy;
float scale; float scale;
} entvars_t; } entvars_t;
#define PROGHEADER_CRC 14116