Skip to content

Commit 8155cf5

Browse files
committed
Fix for Accessories failing to root-clone due to invalid AVFX paths.
1 parent 2903f4e commit 8155cf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xivModdingFramework/Mods/RootCloner.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
7474
foreach (var avfx in avfxSets)
7575
{
7676
var avfxStuff = await ATex.GetVfxPath(Source.Info, avfx);
77+
if (String.IsNullOrEmpty(avfxStuff.Folder) || String.IsNullOrEmpty(avfxStuff.File)) continue;
78+
7779
var path = avfxStuff.Folder + "/" + avfxStuff.File;
7880
if (await _index.FileExists(path))
7981
{
@@ -193,6 +195,10 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
193195
var dst = kv.Value;
194196
var xmdl = await _mdl.GetRawMdlData(src);
195197
var tmdl = TTModel.FromRaw(xmdl);
198+
199+
if (xmdl == null || tmdl == null)
200+
continue;
201+
196202
tmdl.Source = dst;
197203
xmdl.MdlPath = dst;
198204

0 commit comments

Comments
 (0)