Skip to content

Commit b2fcbd4

Browse files
committed
Merge Cleanup & Addition of File Dependency Info screen.
1 parent 8c0e6d6 commit b2fcbd4

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

xivModdingFramework/Cache/XivDependencyGraph.cs

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -546,18 +546,8 @@ public async Task<List<string>> GetTextureFiles(int materialVariant = -1)
546546
}
547547

548548

549-
/// <summary>
550-
/// Gets all IMC Entries associated with this root node.
551-
/// </summary>
552-
/// <returns></returns>
553-
public async Task<List<string>> GetImcEntryPaths()
549+
public string GetRawImcFilePath()
554550
{
555-
// We need to locate and open the IMC file, and then check how many
556-
// actual sets are in it, and calculate the pointers to our associated
557-
// Set + Slot entries.
558-
// Then return them in the format of <ImcPath>::<Offset>
559-
var imcEntries = new List<string>();
560-
561551
var imcPath = "";
562552
if (Info.SecondaryType == null)
563553
{
@@ -571,6 +561,23 @@ public async Task<List<string>> GetImcEntryPaths()
571561
var iId = Info.SecondaryId.ToString().PadLeft(4, '0');
572562
imcPath = Info.GetRootFolder() + String.Format(ImcFileFormat, new string[] { iPrefix, iId });
573563
}
564+
return imcPath;
565+
566+
}
567+
568+
/// <summary>
569+
/// Gets all IMC Entries associated with this root node.
570+
/// </summary>
571+
/// <returns></returns>
572+
public async Task<List<string>> GetImcEntryPaths()
573+
{
574+
// We need to locate and open the IMC file, and then check how many
575+
// actual sets are in it, and calculate the pointers to our associated
576+
// Set + Slot entries.
577+
// Then return them in the format of <ImcPath>::<Offset>
578+
var imcEntries = new List<string>();
579+
580+
var imcPath = GetRawImcFilePath();
574581

575582

576583
var _gameDirectory = XivCache.GameInfo.GameDirectory;

0 commit comments

Comments
 (0)