initial commit of sv_qtv stuff. doesn't do much of anything yet but I need

to clean up DirectConnect first
This commit is contained in:
Bill Currie 2004-03-04 00:13:20 +00:00
parent 37024a4419
commit 4b9d978d44
5 changed files with 91 additions and 3 deletions

View File

@ -5,4 +5,5 @@ EXTRA_DIST = \
bothdefs.h cl_cam.h cl_chat.h cl_demo.h cl_ents.h cl_input.h \
cl_main.h cl_parse.h cl_pred.h cl_skin.h cl_slist.h cl_tent.h \
client.h crudefile.h game.h host.h pmove.h \
server.h sv_gib.h sv_demo.h sv_pr_cmds.h sv_pr_qwe.h sv_progs.h
server.h sv_gib.h sv_demo.h sv_pr_cmds.h sv_pr_qwe.h sv_progs.h \
sv_qtv.h

37
qw/include/sv_qtv.h Normal file
View File

@ -0,0 +1,37 @@
/*
#FILENAME#
#DESCRIPTION#
Copyright (C) 2004 #AUTHOR#
Author: #AUTHOR#
Date: #DATE#
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 __sv_qtv_h
#define __sv_qtv_h
void SV_qtvConnect (void);
#endif//__sv_qtv_h

View File

@ -70,7 +70,7 @@ EXTRA_DIST=sv_sys_win.c sv_sys_unix.c
libqw_server_a_SOURCES= \
crudefile.c sv_ccmds.c sv_demo.c sv_ents.c sv_gib.c sv_init.c sv_main.c \
sv_move.c sv_phys.c sv_pr_cmds.c sv_pr_qwe.c sv_progs.c \
sv_move.c sv_phys.c sv_pr_cmds.c sv_pr_qwe.c sv_progs.c sv_qtv.c \
sv_send.c sv_user.c world.c $(syssv_SRC)
qw_server_LIBS= \

View File

@ -91,6 +91,7 @@ static __attribute__ ((unused)) const char rcsid[] =
#include "sv_demo.h"
#include "sv_progs.h"
#include "sv_gib.h"
#include "sv_qtv.h"
SERVER_PLUGIN_PROTOS
static plugin_list_t server_plugin_list[] = {
@ -777,7 +778,7 @@ SVC_DirectConnect (void)
s = Cmd_Argv (1);
if (!strcmp (s, "qtv")) {
SV_Printf ("QTV proxy connection: %s\n", s);
SV_qtvConnect ();
return;
}

49
qw/source/sv_qtv.c Normal file
View File

@ -0,0 +1,49 @@
/*
#FILENAME#
#DESCRIPTION#
Copyright (C) 2004 #AUTHOR#
Author: #AUTHOR#
Date: #DATE#
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
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
static __attribute__ ((unused)) const char rcsid[] =
"$Id$";
#include "QF/cmd.h"
#include "server.h"
#include "sv_qtv.h"
typedef struct {
} sv_qtv_t;
void
SV_qtvConnect (void)
{
SV_Printf ("QTV proxy connection: %d %s\n", Cmd_Argc (), Cmd_Args (1));
}