add support for downloadable zip mod packages

getmod modname
  Try to download mods/modname.zip from all configured package servers.
  Does not automatically activate the mod. The zip files are limited to
  one megabyte total.

DOCREF getmod
This commit is contained in:
ac-stef
2015-09-07 14:53:56 +02:00
parent f603031018
commit 026dad73cd
5 changed files with 22 additions and 3 deletions
+5
View File
@@ -498,6 +498,11 @@ const char *fixzipname(char *name) // check, if valid path + filename, based on
return path(pname);
}
bool validzipmodname(char *name) // check for valid _downloadable_ zip mod name (no '#' allowed), also changes backslashes to slashes
{
return fixzipname(name) && !strchr(name, '#');
}
VAR(zipcachemaxsize, 0, 512, 1024); // load zip files smaller than 512K straight into RAM
void addzipmod(char *name)