mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-16 17:01:53 +00:00
Rua: move the old cvar() and cvar_set() functions
Move the old cvar get/set funcs to cvar.[rh] from system.[rh].
This commit is contained in:
parent
6ead583195
commit
7d6430edd4
4 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
|||
#ifndef __ruamoko_cvar_h
|
||||
#define __ruamoko_cvar_h
|
||||
|
||||
@extern float cvar (string s);
|
||||
@extern void cvar_set (string var, string val);
|
||||
|
||||
@extern int Cvar_MakeAlias (string alias_name, string cvar_name);
|
||||
@extern int Cvar_RemoveAlias (string alias_name);
|
||||
@extern void Cvar_SetString (string varname, string value);
|
||||
|
|
|
@ -6,10 +6,8 @@
|
|||
@extern void precache_sound (string s);
|
||||
@extern void precache_model (string s);
|
||||
@extern void stuffcmd (entity client, string s);
|
||||
@extern float cvar (string s);
|
||||
@extern void localcmd (string s);
|
||||
@extern void changelevel (string s);
|
||||
@extern void cvar_set (string var, string val);
|
||||
@extern string precache_file (string s);
|
||||
@extern string precache_model2 (string s);
|
||||
@extern string precache_sound2 (string s);
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#include "cvar.h"
|
||||
|
||||
float (string s) cvar = #45;
|
||||
void (string var, string val) cvar_set = #72;
|
||||
|
||||
int Cvar_MakeAlias (string alias_name, string cvar_name) = #0;
|
||||
int Cvar_RemoveAlias (string alias_name) = #0;
|
||||
void (string varname, string value) Cvar_SetString = #0;
|
||||
|
|
|
@ -2,6 +2,4 @@
|
|||
|
||||
float time;
|
||||
|
||||
float (string s) cvar = #45;
|
||||
void (string var, string val) cvar_set = #72;
|
||||
string () gametype = #0x000f0000 + 115;
|
||||
|
|
Loading…
Reference in a new issue