@@ -405,6 +405,10 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
405
405
{
406
406
if ( allFiles . Contains ( mod . fullPath ) )
407
407
{
408
+ // Ensure all of our modified files are attributed correctly.
409
+ mod . name = iName ;
410
+ mod . category = iCat ;
411
+ mod . source = ApplicationSource ;
408
412
mod . modPack = modPack ;
409
413
}
410
414
}
@@ -429,9 +433,16 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
429
433
430
434
private static string UpdatePath ( XivDependencyRoot Source , XivDependencyRoot Destination , string path )
431
435
{
432
- // Things that live in the common folder get to stay there/don't get copied.
433
- if ( path . StartsWith ( CommonPath ) ) return path ;
436
+ // For common path items, copy them to our own personal mimic of the path.
437
+ if ( path . StartsWith ( CommonPath ) )
438
+ {
439
+ var len = CommonPath . Length ;
440
+ var afterCommon = path . Substring ( len ) ;
441
+ path = Destination . Info . GetRootFolder ( ) + "common/" + afterCommon ;
442
+ return path ;
443
+ }
434
444
445
+ // Things that live in the common folder get to stay there/don't get copied.
435
446
436
447
var file = UpdateFileName ( Source , Destination , path ) ;
437
448
var folder = UpdateFolder ( Source , Destination , path ) ;
@@ -441,6 +452,8 @@ private static string UpdatePath(XivDependencyRoot Source, XivDependencyRoot Des
441
452
442
453
private static string UpdateFolder ( XivDependencyRoot Source , XivDependencyRoot Destination , string path )
443
454
{
455
+
456
+
444
457
// So first off, just copy anything from the old root folder to the new one.
445
458
var match = RemoveRootPathRegex . Match ( path ) ;
446
459
if ( match . Success )
0 commit comments