Remove oramod package support.
This commit is contained in:
@@ -50,8 +50,6 @@ namespace OpenRA.FileSystem
|
||||
return new ZipFile(this, filename);
|
||||
if (filename.EndsWith(".oramap", StringComparison.InvariantCultureIgnoreCase))
|
||||
return new ZipFile(this, filename);
|
||||
if (filename.EndsWith(".oramod", StringComparison.InvariantCultureIgnoreCase))
|
||||
return new ZipFile(this, filename);
|
||||
if (filename.EndsWith(".RS", StringComparison.InvariantCultureIgnoreCase))
|
||||
return new D2kSoundResources(this, filename);
|
||||
if (filename.EndsWith(".Z", StringComparison.InvariantCultureIgnoreCase))
|
||||
|
||||
@@ -53,9 +53,6 @@ namespace OpenRA
|
||||
var directory = new DirectoryInfo(resolved);
|
||||
foreach (var subdir in directory.EnumerateDirectories())
|
||||
mods.Add(Pair.New(subdir.Name, subdir.FullName));
|
||||
|
||||
foreach (var file in directory.EnumerateFiles("*.oramod"))
|
||||
mods.Add(Pair.New(Path.GetFileNameWithoutExtension(file.Name), file.FullName));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -94,8 +91,6 @@ namespace OpenRA
|
||||
using (var bitmap = new Bitmap(stream))
|
||||
icons[id] = sheetBuilder.Add(bitmap);
|
||||
|
||||
// Mods in the support directory and oramod packages (which are listed later
|
||||
// in the CandidateMods list) override mods in the main install.
|
||||
return new Manifest(id, package);
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user