From a51e7ddb0b285747bd248e5a6b3504367b71272c Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 24 Aug 2015 13:42:46 -0500 Subject: [PATCH] create TAStudio States directory if it doesnt exist --- BizHawk.Common/NDBDatabase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BizHawk.Common/NDBDatabase.cs b/BizHawk.Common/NDBDatabase.cs index fded9c296f..744768ff69 100644 --- a/BizHawk.Common/NDBDatabase.cs +++ b/BizHawk.Common/NDBDatabase.cs @@ -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); }