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
+4
View File
@@ -146,6 +146,8 @@ void writeinitcfg()
f->printf("audio %d\n", audio > 0 ? 1 : 0);
f->printf("soundchannels %d\n", soundchannels);
if(lang && *lang) f->printf("lang %s\n", lang);
extern void writezipmodconfig(stream *f);
writezipmodconfig(f);
delete f;
}
@@ -941,6 +943,7 @@ void autostartscripts(const char *prefix)
void createconfigtemplates(const char *templatezip) // create customisable config files in homedir - only if missing
{
#if 0
if(addzip(templatezip))
{
vector<char *> files;
@@ -971,6 +974,7 @@ void createconfigtemplates(const char *templatezip) // create customisable conf
removezip(templatezip);
}
findfile(AUTOSTARTPATH "dummy", "w"); // create empty autostart directory, if it doesn't exist yet
#endif
}
extern void connectserv(char *, int *, char *);