GenArray: Create output directory if it doesn't exist

This commit is contained in:
TSR Berry 2023-02-27 13:11:34 +01:00
parent fbec10052c
commit c89f982527
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -182,6 +182,11 @@ namespace Ryujinx.CustomTasks
string arraysFilePath = Path.Combine(OutputPath, ArraysFileName);
List<int> arraySizes = new List<int>();
if (!Directory.Exists(OutputPath))
{
Directory.CreateDirectory(OutputPath);
}
foreach (var item in InputFiles)
{
string fullPath = item.GetMetadata("FullPath");