From 681a9a1823d12e9ebc7e33dde144f3b601fb7d20 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 27 Jul 2013 23:15:29 +0000 Subject: [PATCH] small addition. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4436 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_droid.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/engine/client/sys_droid.c b/engine/client/sys_droid.c index 427026b40..92cefb28b 100644 --- a/engine/client/sys_droid.c +++ b/engine/client/sys_droid.c @@ -425,7 +425,16 @@ void Sys_ServerActivity(void) { /*FIXME: flash window*/ } +void Sys_Sleep (double seconds) +{ + struct timespec ts; + ts.tv_sec = (time_t)seconds; + seconds -= ts.tv_sec; + ts.tv_nsec = seconds * 1000000000.0; + + nanosleep(&ts, NULL); +} qboolean Sys_InitTerminal(void) { /*switching to dedicated mode, show text window*/ @@ -435,17 +444,21 @@ void Sys_CloseTerminal(void) { } +#define SYS_CLIPBOARD_SIZE 256 +static char clipboard_buffer[SYS_CLIPBOARD_SIZE] = {0}; char *Sys_GetClipboard(void) { - return NULL; + return clipboard_buffer; } -void Sys_CloseClipboard(char *buf) +void Sys_CloseClipboard(char *bf) { } void Sys_SaveClipboard(char *text) { + Q_strncpyz(clipboard_buffer, text, SYS_CLIPBOARD_SIZE); } + int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *, searchpathfuncs_t *), void *parm, searchpathfuncs_t *spath) { DIR *dir;