- implement r_noborder, inspired by patch from ensiform (#4289)

- Add Sys_SetEnv for portable setting of environment variables
 - Default ioquake3 to appear on the center of the screen if running in windowed mode.
This commit is contained in:
Thilo Schulz 2009-11-03 20:29:43 +00:00
parent c90eae4de5
commit bd2ab9bffd
6 changed files with 48 additions and 7 deletions

View file

@ -583,3 +583,19 @@ void Sys_PlatformInit( void )
signal( SIGIOT, Sys_SigHandler );
signal( SIGBUS, Sys_SigHandler );
}
/*
==============
Sys_SetEnv
set/unset environment variables (empty value removes it)
==============
*/
void Sys_SetEnv(const char *name, const char *value)
{
if(value && *value)
setenv(name, value, 1);
else
unsetenv(name);
}