- 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:
parent
c90eae4de5
commit
bd2ab9bffd
6 changed files with 48 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue