- 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
|
@ -652,3 +652,16 @@ void Sys_PlatformInit( void )
|
|||
SDL_VIDEODRIVER_externallySet = qfalse;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
==============
|
||||
Sys_SetEnv
|
||||
|
||||
set/unset environment variables (empty value removes it)
|
||||
==============
|
||||
*/
|
||||
|
||||
void Sys_SetEnv(const char *name, const char *value)
|
||||
{
|
||||
_putenv(va("%s=%s", name, value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue