Remove legacy FileSystem.OpenPackage(string, IReadOnlyPackage).
This commit is contained in:
@@ -81,12 +81,6 @@ namespace OpenRA.FileSystem
|
||||
return null;
|
||||
}
|
||||
|
||||
public IReadOnlyPackage OpenPackage(string filename, IReadOnlyPackage parent)
|
||||
{
|
||||
// TODO: Make legacy callers access the parent package directly
|
||||
return parent.OpenPackage(filename, this);
|
||||
}
|
||||
|
||||
public void Mount(string name, string explicitName = null)
|
||||
{
|
||||
var optional = name.StartsWith("~", StringComparison.Ordinal);
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace OpenRA
|
||||
{
|
||||
using (new Support.PerfTimer(map))
|
||||
{
|
||||
mapPackage = modData.ModFiles.OpenPackage(map, kv.Key);
|
||||
mapPackage = kv.Key.OpenPackage(map, modData.ModFiles);
|
||||
if (mapPackage == null)
|
||||
continue;
|
||||
|
||||
|
||||
@@ -471,7 +471,7 @@ namespace OpenRA
|
||||
Log.Write("debug", "Downloaded map to '{0}'", mapFilename);
|
||||
Game.RunAfterTick(() =>
|
||||
{
|
||||
var package = modData.ModFiles.OpenPackage(mapFilename, mapInstallPackage);
|
||||
var package = mapInstallPackage.OpenPackage(mapFilename, modData.ModFiles);
|
||||
if (package == null)
|
||||
innerData.Status = MapStatus.DownloadError;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user