Mount shadow addons on top of content/, not on top of everything

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3175 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-07-09 19:16:53 +00:00
parent 07a7a09659
commit 4ea59d3f9d
+2 -2
View File
@@ -60,6 +60,7 @@ uio_DirHandle *contentDir;
uio_DirHandle *configDir; uio_DirHandle *configDir;
uio_DirHandle *saveDir; uio_DirHandle *saveDir;
uio_DirHandle *meleeDir; uio_DirHandle *meleeDir;
uio_MountHandle* contentMountHandle;
char baseContentPath[PATH_MAX]; char baseContentPath[PATH_MAX];
@@ -133,7 +134,6 @@ prepareContentDir (const char *contentDirName, const char* addonDirName, const c
{ {
const char *testFile = "version"; const char *testFile = "version";
const char *loc; const char *loc;
uio_MountHandle* contentMountHandle;
if (contentDirName == NULL) if (contentDirName == NULL)
{ {
@@ -548,7 +548,7 @@ prepareShadowAddons (const char **addons)
if (shadowDir) if (shadowDir)
{ {
log_add (log_Debug, "Mounting shadow content of '%s' addon", addon); log_add (log_Debug, "Mounting shadow content of '%s' addon", addon);
mountDirZips (shadowDir, "/", uio_MOUNT_TOP, NULL); mountDirZips (shadowDir, "/", uio_MOUNT_ABOVE, contentMountHandle);
uio_closeDir (shadowDir); uio_closeDir (shadowDir);
} }
uio_closeDir (addonDir); uio_closeDir (addonDir);