fix dumb bug in map importer
This commit is contained in:
@@ -63,7 +63,10 @@ namespace OpenRA.FileFormats
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void Write(Dictionary<string, byte[]> contents)
|
public void Write(Dictionary<string, byte[]> contents)
|
||||||
{
|
{
|
||||||
|
if (!Directory.Exists(path))
|
||||||
|
Directory.CreateDirectory(path);
|
||||||
|
|
||||||
foreach (var file in contents)
|
foreach (var file in contents)
|
||||||
using (var dataStream = File.Create(Path.Combine(path, file.Key)))
|
using (var dataStream = File.Create(Path.Combine(path, file.Key)))
|
||||||
using (var writer = new BinaryWriter(dataStream))
|
using (var writer = new BinaryWriter(dataStream))
|
||||||
|
|||||||
Reference in New Issue
Block a user