From 4ea59d3f9df898ff07228e910cd92427cc38312b Mon Sep 17 00:00:00 2001 From: avolkov Date: Thu, 9 Jul 2009 19:16:53 +0000 Subject: [PATCH] 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 --- sc2/src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/options.c b/sc2/src/options.c index b6783c512..2cf5c411e 100644 --- a/sc2/src/options.c +++ b/sc2/src/options.c @@ -60,6 +60,7 @@ uio_DirHandle *contentDir; uio_DirHandle *configDir; uio_DirHandle *saveDir; uio_DirHandle *meleeDir; +uio_MountHandle* contentMountHandle; char baseContentPath[PATH_MAX]; @@ -133,7 +134,6 @@ prepareContentDir (const char *contentDirName, const char* addonDirName, const c { const char *testFile = "version"; const char *loc; - uio_MountHandle* contentMountHandle; if (contentDirName == NULL) { @@ -548,7 +548,7 @@ prepareShadowAddons (const char **addons) if (shadowDir) { 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 (addonDir);