Add a context argument to package files contructors
This commit is contained in:
@@ -317,7 +317,7 @@ namespace OpenRA
|
||||
public Map(string path)
|
||||
{
|
||||
Path = path;
|
||||
Container = FileSystem.FileSystem.OpenPackage(path, null, int.MaxValue);
|
||||
Container = Game.ModData.ModFiles.OpenPackage(path, null, int.MaxValue);
|
||||
|
||||
AssertExists("map.yaml");
|
||||
AssertExists("map.bin");
|
||||
@@ -650,7 +650,7 @@ namespace OpenRA
|
||||
Path = toPath;
|
||||
|
||||
// Create a new map package
|
||||
Container = FileSystem.FileSystem.CreatePackage(Path, int.MaxValue, entries);
|
||||
Container = Game.ModData.ModFiles.CreatePackage(Path, int.MaxValue, entries);
|
||||
}
|
||||
|
||||
// Update existing package
|
||||
|
||||
Reference in New Issue
Block a user