From 217f53a1489482fefabf4795dcc1250f619c5051 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Wed, 11 Dec 2019 17:09:35 -0500 Subject: [PATCH] Fix missing flatbuffer directory. --- Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs b/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs index 8e76a263..8589e936 100644 --- a/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs +++ b/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs @@ -128,6 +128,9 @@ namespace Toolbox.Library.IO private static string GenerateBinFrom(T obj, string fbs) { + if (!Directory.Exists(FlatPath)) + Directory.CreateDirectory(FlatPath); + var fbsName = fbs + ".fbs"; var jsonName = fbs + ".json"; var text = WriteJson(obj);