Unify progdefs.h across all sourceports

This commit is contained in:
cypress 2024-09-02 19:15:45 -07:00
parent 39cc0a6655
commit 93c42542c8
2 changed files with 147 additions and 174 deletions

View File

@ -1021,11 +1021,6 @@ void PR_LoadProgs (void)
for (i=0 ; i<sizeof(*progs)/4 ; 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 ("progs.dat system vars have been modified, progdefs.h is out of date\n");
pr_functions = (dfunction_t *)((byte *)progs + progs->ofs_functions);
pr_strings = (char *)progs + progs->ofs_strings;
pr_globaldefs = (ddef_t *)((byte *)progs + progs->ofs_globaldefs);

View File

@ -1,28 +1,8 @@
/*
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* file generated by qcc, do not modify */
/* TODO: Use FTEQCC to autogenerate this. */
typedef struct
{ int pad[28];
{
int pad[28];
int self;
int other;
int world;
@ -76,7 +56,7 @@ typedef struct
func_t ClientDisconnect;
func_t SetNewParms;
func_t SetChangeParms;
func_t ParseClientCommand;
func_t ParseClientCommand; // special command calls
string_t CMD_STRING;
func_t Soft_Restart;
} globalvars_t;
@ -186,5 +166,3 @@ typedef struct
float facingenemy;
float scale;
} entvars_t;
#define PROGHEADER_CRC 5927