We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12dec77 commit 31ad25bCopy full SHA for 31ad25b
xivModdingFramework/Mods/Modding.cs
@@ -79,6 +79,14 @@ static Modding()
79
80
public static bool ValidateModlist(string ffxivDirectory = null)
81
{
82
+ if(ffxivDirectory == null &&
83
+ (XivCache.GameInfo == null
84
+ || XivCache.GameInfo.GameDirectory == null
85
+ || string.IsNullOrWhiteSpace(XivCache.GameInfo.GameDirectory.FullName)))
86
+ {
87
+ throw new InvalidDataException("Cannot validate modlist for NULL directory.");
88
+ }
89
+
90
var dir = string.IsNullOrEmpty(ffxivDirectory) ? XivCache.GameInfo.GameDirectory.FullName : ffxivDirectory;
91
dir = new DirectoryInfo(dir).Parent.Parent.FullName;
92
0 commit comments