From 27eea2a788a3d9becb463f57866a7dab35691eab Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 12 Mar 2013 22:59:38 +0000 Subject: [PATCH] ------------------------------------------------------------------------ r4211 | acceptthis | 2013-02-17 17:07:49 +0000 (Sun, 17 Feb 2013) | 1 line fix compiletime warning, pass dataDownload info to the engine itself. ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4209 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_plugfte.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/engine/client/sys_plugfte.c b/engine/client/sys_plugfte.c index 44ebd3914..67c1578e0 100644 --- a/engine/client/sys_plugfte.c +++ b/engine/client/sys_plugfte.c @@ -481,7 +481,7 @@ vfsfile_t *VFSPIPE_Open(void) //#endif -qboolean MyRegGetStringValue(HKEY base, char *keyname, char *valuename, void *data, int datalen) +qboolean MyRegGetStringValue(HKEY base, char *keyname, char *valuename, void *data, DWORD datalen) { qboolean result = false; DWORD resultlen = datalen - 1; @@ -500,7 +500,7 @@ qboolean MyRegGetStringValue(HKEY base, char *keyname, char *valuename, void *da return result; } -void MyRegSetValue(HKEY base, char *keyname, char *valuename, int type, void *data, int datalen) +void MyRegSetValue(HKEY base, char *keyname, char *valuename, int type, void *data, DWORD datalen) { HKEY subkey; if (RegCreateKeyEx(base, keyname, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &subkey, NULL) == ERROR_SUCCESS) @@ -797,7 +797,7 @@ int Plug_GenCommandline(struct context *ctx, char **argv, int maxargs) char basedir[1024]; qboolean autoupdate; - Q_snprintfz(exe, sizeof(exe), "%s%s", binarypath, "fteqw"); + *exe = 0; *basedir = 0; autoupdate = Plug_GetBinaryName(exe, sizeof(exe), basedir, sizeof(basedir)); @@ -881,6 +881,13 @@ int Plug_GenCommandline(struct context *ctx, char **argv, int maxargs) ADDRARG("-addbasegame"); ADDCARG(tok); } + + if (ctx->datadownload) + { + ADDRARG("-manifest"); + ADDCARG(ctx->datadownload); + } + return argc; } qboolean Plug_GenCommandlineString(struct context *ctx, char *cmdline, int cmdlinelen)