1
0
Fork 0
forked from fte/fteqw

Small fixup

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5978 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-07-18 00:24:06 +00:00
parent 50aa60a8ca
commit 0dc79f7f0a

View file

@ -198,17 +198,13 @@ static char *manifestpackages; //metapackage named by the manicfest.
static char *declinedpackages; //metapackage named by the manicfest.
static int domanifestinstall; //SECURITY_MANIFEST_*
#ifdef WEBCLIENT
static struct
{
char *package; //package to load. don't forget its dependancies too.
char *map; //the map to load.
} pm_onload;
#ifndef SERVERONLY
//static qboolean pluginpromptshown; //so we only show prompts for new externally-installed plugins once, instead of every time the file is reloaded.
#endif
#ifdef WEBCLIENT
static int allowphonehome = -1; //if autoupdates are disabled, make sure we get (temporary) permission before phoning home for available updates. (-1=unknown, 0=no, 1=yes)
static qboolean doautoupdate; //updates will be marked (but not applied without the user's actions)
static qboolean pkg_updating; //when flagged, further changes are blocked until completion.
@ -3983,6 +3979,10 @@ void PM_LoadMap(const char *package, const char *map)
pkg_updating = true;
PM_StartADownload();
}
#else
void PM_LoadMap(const char *package, const char *map)
{ //not supported, which is a shame because it might have been downloaded via other means.
}
#endif
//'just' starts doing all the things needed to remove/install selected packages
void PM_ApplyChanges(void)