Changed: Mounts the map' IFolder with least possible priority, allowing the map to has its own assets

This commit is contained in:
geckosoft
2010-11-15 04:09:45 +01:00
committed by Chris Forbes
parent 000dd6de7b
commit be9f52e029
2 changed files with 25 additions and 2 deletions

View File

@@ -69,6 +69,16 @@ namespace OpenRA.FileFormats
allFiles = new Cache<uint, List<IFolder>>( _ => new List<IFolder>() );
}
public static bool Unmount(IFolder mount)
{
return (mountedFolders.RemoveAll(f => f == mount) > 0);
}
public static void Mount(IFolder mount)
{
if (!mountedFolders.Contains(mount)) mountedFolders.Add(mount);
}
public static void LoadFromManifest( Manifest manifest )
{
UnmountAll();