Unstatic GlobalFileSystem and rename it to FileSystem
Add a ModFiles field on ModData and move all access to the file system to go through that.
This commit is contained in:
@@ -34,7 +34,7 @@ namespace OpenRA.FileSystem
|
||||
this.priority = priority;
|
||||
index = new Dictionary<string, Entry>();
|
||||
|
||||
stream = GlobalFileSystem.Open(filename);
|
||||
stream = Game.ModData.ModFiles.Open(filename);
|
||||
try
|
||||
{
|
||||
index = new Dictionary<string, Entry>();
|
||||
|
||||
Reference in New Issue
Block a user