From c89f982527f139941255dd28495a58db6a488f68 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Mon, 27 Feb 2023 13:11:34 +0100 Subject: [PATCH] GenArray: Create output directory if it doesn't exist --- Ryujinx.CustomTasks/GenerateArrays.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ryujinx.CustomTasks/GenerateArrays.cs b/Ryujinx.CustomTasks/GenerateArrays.cs index 440f284..924a509 100644 --- a/Ryujinx.CustomTasks/GenerateArrays.cs +++ b/Ryujinx.CustomTasks/GenerateArrays.cs @@ -182,6 +182,11 @@ namespace Ryujinx.CustomTasks string arraysFilePath = Path.Combine(OutputPath, ArraysFileName); List arraySizes = new List(); + if (!Directory.Exists(OutputPath)) + { + Directory.CreateDirectory(OutputPath); + } + foreach (var item in InputFiles) { string fullPath = item.GetMetadata("FullPath");