Add a context argument to package files contructors
This commit is contained in:
@@ -24,12 +24,12 @@ namespace OpenRA.FileSystem
|
||||
|
||||
readonly Dictionary<uint, PackageEntry> index = new Dictionary<uint, PackageEntry>();
|
||||
|
||||
public D2kSoundResources(string filename, int priority)
|
||||
public D2kSoundResources(FileSystem context, string filename, int priority)
|
||||
{
|
||||
this.filename = filename;
|
||||
this.priority = priority;
|
||||
|
||||
s = Game.ModData.ModFiles.Open(filename);
|
||||
s = context.Open(filename);
|
||||
try
|
||||
{
|
||||
filenames = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user