Output: Fix crash on single-file output when only the leaf filename is specified

This commit is contained in:
Katy Coe
2019-11-13 05:34:11 +01:00
parent 3674706fe8
commit 0185570bac

View File

@@ -126,6 +126,7 @@ namespace Il2CppInspector
var usings = nsRefs.OrderBy(n => (n.StartsWith("System.") || n == "System") ? "0" + n : "1" + n);
// Ensure output directory exists
if (!string.IsNullOrEmpty(Path.GetDirectoryName(outFile)))
Directory.CreateDirectory(Path.GetDirectoryName(outFile));
// Create output file