rewire zip packages inside the virtual filesystem

* change priority of zip packages from "highest" to "just below home dir"
* strict naming rules for zip packages
* require all zips to be below directory "mods/"
* only allow zips to intoduce files below "packages/" (or with a special
  zip package name also below "config/")
* make zip package config persistent (saved to init.cfg)

WARNING: intermediate commit - autodownload system defunct!

DOCREF (removed) addzip removezip
This commit is contained in:
ac-stef
2015-09-07 14:53:56 +02:00
parent 0dab3ade48
commit 816aed4ba6
9 changed files with 208 additions and 97 deletions
+1
View File
@@ -923,6 +923,7 @@ void getmapsoundorigin(char *fname)
const char *res = s;
switch(findfilelocation)
{
case FFL_ZIP: res = "zip"; break;
case FFL_WORKDIR: res = fileexists(s, "r") ? "official" : "<file not found>"; break;
case FFL_HOME: res = "custom"; break;
default: formatstring(s)("package dir #%d", findfilelocation); break;