create TAStudio States directory if it doesnt exist
This commit is contained in:
parent
bcefd6f2d7
commit
a51e7ddb0b
|
@ -66,6 +66,7 @@ namespace BizHawk.Common
|
|||
Consumed = 0;
|
||||
BlockSize = blocksize;
|
||||
BlockCount = size / BlockSize;
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(path));
|
||||
Stream = new FileStream(path, FileMode.Create, System.Security.AccessControl.FileSystemRights.FullControl, FileShare.None, 4 * 1024, FileOptions.DeleteOnClose);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue