Output: Fix crash on single-file output when only the leaf filename is specified
This commit is contained in:
@@ -126,6 +126,7 @@ namespace Il2CppInspector
|
|||||||
var usings = nsRefs.OrderBy(n => (n.StartsWith("System.") || n == "System") ? "0" + n : "1" + n);
|
var usings = nsRefs.OrderBy(n => (n.StartsWith("System.") || n == "System") ? "0" + n : "1" + n);
|
||||||
|
|
||||||
// Ensure output directory exists
|
// Ensure output directory exists
|
||||||
|
if (!string.IsNullOrEmpty(Path.GetDirectoryName(outFile)))
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(outFile));
|
Directory.CreateDirectory(Path.GetDirectoryName(outFile));
|
||||||
|
|
||||||
// Create output file
|
// Create output file
|
||||||
|
|||||||
Reference in New Issue
Block a user