mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
37024a4419
commit
4b9d978d44
5 changed files with 91 additions and 3 deletions
|
@ -5,4 +5,5 @@ EXTRA_DIST = \
|
||||||
bothdefs.h cl_cam.h cl_chat.h cl_demo.h cl_ents.h cl_input.h \
|
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 \
|
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 \
|
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
37
qw/include/sv_qtv.h
Normal 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
|
|
@ -70,7 +70,7 @@ EXTRA_DIST=sv_sys_win.c sv_sys_unix.c
|
||||||
|
|
||||||
libqw_server_a_SOURCES= \
|
libqw_server_a_SOURCES= \
|
||||||
crudefile.c sv_ccmds.c sv_demo.c sv_ents.c sv_gib.c sv_init.c sv_main.c \
|
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)
|
sv_send.c sv_user.c world.c $(syssv_SRC)
|
||||||
|
|
||||||
qw_server_LIBS= \
|
qw_server_LIBS= \
|
||||||
|
|
|
@ -91,6 +91,7 @@ static __attribute__ ((unused)) const char rcsid[] =
|
||||||
#include "sv_demo.h"
|
#include "sv_demo.h"
|
||||||
#include "sv_progs.h"
|
#include "sv_progs.h"
|
||||||
#include "sv_gib.h"
|
#include "sv_gib.h"
|
||||||
|
#include "sv_qtv.h"
|
||||||
|
|
||||||
SERVER_PLUGIN_PROTOS
|
SERVER_PLUGIN_PROTOS
|
||||||
static plugin_list_t server_plugin_list[] = {
|
static plugin_list_t server_plugin_list[] = {
|
||||||
|
@ -777,7 +778,7 @@ SVC_DirectConnect (void)
|
||||||
|
|
||||||
s = Cmd_Argv (1);
|
s = Cmd_Argv (1);
|
||||||
if (!strcmp (s, "qtv")) {
|
if (!strcmp (s, "qtv")) {
|
||||||
SV_Printf ("QTV proxy connection: %s\n", s);
|
SV_qtvConnect ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
49
qw/source/sv_qtv.c
Normal file
49
qw/source/sv_qtv.c
Normal 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));
|
||||||
|
}
|
Loading…
Reference in a new issue