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
1 changed files with 5 additions and 0 deletions

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");