Skip to content

Commit e342389

Browse files
committed
create output directory if it doesn't exist in redux uis
1 parent b5ecc8a commit e342389

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Il2CppInspector.Redux.FrontendCore/UiContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ public async Task StartExportAsync(UiClient client, CancellationToken cancellati
211211
{
212212
try
213213
{
214+
if (!Directory.Exists(outputDirectory))
215+
{
216+
Directory.CreateDirectory(outputDirectory);
217+
}
218+
214219
var outputFormat = OutputFormatRegistry.GetOutputFormat(formatId);
215220
await outputFormat.Export(model, client, outputDirectory, settings);
216221
}

0 commit comments

Comments
 (0)