diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-06-29 12:32:32 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-06-29 12:32:32 +0000 |
commit | e826e5f176f21cd18b3bbc22887a266835ada57c (patch) | |
tree | d25a84a84f9168b16a77fe4ed8b169c9611bbb02 /source/sys_win.c | |
parent | 491f1c100e860c45a5d2aa358d58f777cd1cf895 (diff) |
Added client and server side support for 32-bit solids.
New R1Q2 and Q2PRO minor protocol versions, 1905 and 1014.
Use environment variables for game and server features negotiation.
Relax restrictions on quake paths when searching inside pak files.
Made OSS subsystem cvar names consistent with core sound system conventions.
Misc latched cvar handling changes.
Diffstat (limited to 'source/sys_win.c')
-rw-r--r-- | source/sys_win.c | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/source/sys_win.c b/source/sys_win.c index d145c45..2f12029 100644 --- a/source/sys_win.c +++ b/source/sys_win.c @@ -638,32 +638,6 @@ unsigned Sys_Milliseconds( void ) { return timeGetTime(); } -/* -================ -Sys_Mkdir -================ -*/ -qboolean Sys_Mkdir( const char *path ) { - if( !CreateDirectoryA( path, NULL ) ) { - return qfalse; - } - return qtrue; -} - -qboolean Sys_RemoveFile( const char *path ) { - if( !DeleteFileA( path ) ) { - return qfalse; - } - return qtrue; -} - -qboolean Sys_RenameFile( const char *from, const char *to ) { - if( !MoveFileA( from, to ) ) { - return qfalse; - } - return qtrue; -} - void Sys_AddDefaultConfig( void ) { } @@ -703,75 +677,11 @@ qboolean Sys_GetFileInfo( FILE *fp, fsFileInfo_t *info ) { /* ================ -Sys_GetClipboardData - -================ -*/ -char *Sys_GetClipboardData( void ) { - HANDLE clipdata; - char *data = NULL; - char *cliptext; - - if( OpenClipboard( NULL ) == FALSE ) { - Com_DPrintf( "Couldn't open clipboard.\n" ); - return data; - } - - if( ( clipdata = GetClipboardData( CF_TEXT ) ) != NULL ) { - if( ( cliptext = GlobalLock( clipdata ) ) != NULL ) { - data = Z_CopyString( cliptext ); - GlobalUnlock( clipdata ); - } - } - CloseClipboard(); - - return data; -} - -/* -================ -Sys_SetClipboardData - -================ -*/ -void Sys_SetClipboardData( const char *data ) { - HANDLE clipdata; - char *cliptext; - size_t length; - - if( !data[0] ) { - return; - } - - if( OpenClipboard( NULL ) == FALSE ) { - Com_DPrintf( "Couldn't open clipboard.\n" ); - return; - } - - EmptyClipboard(); - - length = strlen( data ) + 1; - if( ( clipdata = GlobalAlloc( GMEM_MOVEABLE | GMEM_DDESHARE, length ) ) != NULL ) { - if( ( cliptext = GlobalLock( clipdata ) ) != NULL ) { - memcpy( cliptext, data, length ); - GlobalUnlock( clipdata ); - SetClipboardData( CF_TEXT, clipdata ); - } - } - - CloseClipboard(); -} - - -/* -================ Sys_FillAPI ================ */ void Sys_FillAPI( sysAPI_t *api ) { api->Milliseconds = Sys_Milliseconds; - api->GetClipboardData = Sys_GetClipboardData; - api->SetClipboardData = Sys_SetClipboardData; api->HunkBegin = Hunk_Begin; api->HunkAlloc = Hunk_Alloc; api->HunkEnd = Hunk_End; @@ -786,15 +696,6 @@ void Sys_Sleep( int msec ) { Sleep( msec ); } -void Sys_Setenv( const char *name, const char *value ) { -#if( _MSC_VER >= 1400 ) - _putenv_s( name, value ); -#else - _putenv( va( "%s=%s", name, value ) ); -#endif -} - - /* ================ Sys_Init |