allow optional mixes again; fix openal so it can *tell* when it fails to allocate sources, rather than just copying 400 bytes of ununitialized garbage into our managed space

This commit is contained in:
Chris Forbes
2010-02-05 13:05:03 +13:00
parent 20c631a7f9
commit 3b763d00fd
5 changed files with 26 additions and 13 deletions

View File

@@ -44,8 +44,13 @@ namespace OpenRa
FileSystem.MountTemporary(new Folder(dir));
foreach (var pkg in manifest.Packages)
FileSystem.MountTemporary(new Package(pkg));
Timer.Time("mount tempory packages: {0}");
if (pkg.StartsWith( "~")) // this package is optional.
try { FileSystem.MountTemporary(new Package(pkg.Substring(1))); }
catch { }
else
FileSystem.MountTemporary(new Package(pkg));
Timer.Time("mount temporary packages: {0}");
}
public static void ChangeMap(string mapName)