// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id: d_netinfo.cpp 5 2007-01-16 19:13:59Z denis $ // // Copyright (C) 1998-2006 by Randy Heit (ZDoom 1.22). // Copyright (C) 2000-2006 by Sergey Makovkin (CSDoom .62). // Copyright (C) 2006-2007 by The Odamex Team. // // 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. // // DESCRIPTION: // D_NETINFO // //----------------------------------------------------------------------------- #include #include #include #include #include "doomtype.h" #include "doomdef.h" #include "doomstat.h" #include "d_netinf.h" #include "d_net.h" #include "d_protocol.h" #include "v_palette.h" #include "v_video.h" #include "i_system.h" #include "r_draw.h" #include "r_state.h" void SV_ServerSettingChange (void); int D_GenderToInt (const char *gender) { if (!stricmp (gender, "female")) return GENDER_FEMALE; else if (!stricmp (gender, "cyborg")) return GENDER_NEUTER; else return GENDER_MALE; } void D_SetupUserInfo (void) { } void D_UserInfoChanged (cvar_t *cvar) { } bool SetServerVar (const char *name, const char *value) { cvar_t *dummy; cvar_t *var = cvar_t::FindCVar (name, &dummy); if (var) { unsigned oldflags = var->flags(); var->m_Flags &= ~(CVAR_SERVERINFO|CVAR_LATCH); var->Set (value); var->m_Flags = oldflags; return true; } return false; } void D_SendServerInfoChange (const cvar_t *cvar, const char *value) { SetServerVar (cvar->name(), (char *)value); SV_ServerSettingChange (); } void D_DoServerInfoChange (byte **stream) { } void D_WriteUserInfoStrings (int i, byte **stream, bool compact) { } void D_ReadUserInfoStrings (int i, byte **stream, bool update) { } FArchive &operator<< (FArchive &arc, userinfo_t &info) { return arc; } FArchive &operator>> (FArchive &arc, userinfo_t &info) // removeme { return arc; } VERSION_CONTROL (d_netinfo_cpp, "$Id: d_netinfo.cpp 5 2007-01-16 19:13:59Z denis $")