From 93c098eb8794330e7ebd13114261271107afc497 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Fri, 5 May 2000 01:55:55 +0000 Subject: [PATCH] Put standard GPL thingy on these things --- common/cl_slist.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++ common/cl_slist.h | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/common/cl_slist.c b/common/cl_slist.c index 849af3c..a8ef17b 100644 --- a/common/cl_slist.c +++ b/common/cl_slist.c @@ -1,3 +1,62 @@ +/* + cl_slist.c + + serverlist addressbook + + Copyright (C) 1999,2000 contributors of the QuakeForge project + Please see the file "AUTHORS" for a list of contributors + + Author: Brain Koropoff + Date: 03 May 2000 + + 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: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + + $Id$ +*/ + +#include +#include +#include + +cvar_t *registered; + +/* + register_check + + Look for gfx/pop.lmp (only found in ID's registered quake pak files), + and set the "registered" cvar to 1 if found. +*/ +void +register_check ( void ) +{ + QFile *h; + + registered = Cvar_Get ("registered","0",0,"None"); + + COM_FOpenFile("gfx/pop.lmp", &h); + + if (h) { + Cvar_Set (registered, "1"); + Qclose (h); + } +} + #include #include #include diff --git a/common/cl_slist.h b/common/cl_slist.h index abdd54c..9d5c792 100644 --- a/common/cl_slist.h +++ b/common/cl_slist.h @@ -1,3 +1,43 @@ +/* + cl_slist.h + + serverlist addressbook interface + + Copyright (C) 1999,2000 contributors of the QuakeForge project + Please see the file "AUTHORS" for a list of contributors + + Author: Brain Koropoff + Date: 03 May 2000 + + 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: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + + $Id$ +*/ + +#ifndef _REGISTER_CHECK_H +#define _REGISTER_CHECK_H + +extern struct cvar_s *registered; +void register_check (); + +#endif // _REGISTER_CHECK_H + #include #define MAX_SERVER_LIST 256