create TAStudio States directory if it doesnt exist

This commit is contained in:
zeromus 2015-08-24 13:42:46 -05:00
parent bcefd6f2d7
commit a51e7ddb0b
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}