Skip to content

Commit a0d592b

Browse files
committed
- Fixed a bug where custom file additions could be downgraded to base file modification mods.
1 parent 3bd19cf commit a0d592b

File tree

2 files changed

+3
-1
lines changed
  • xivModdingFramework

2 files changed

+3
-1
lines changed

xivModdingFramework/Models/FileTypes/Mdl.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,6 @@ await Task.Run(async () =>
21002100
// Time to pull in the Model Modifier for any extra steps before we pass
21012101
// it to the raw MDL creation function.
21022102

2103-
loggingFunction(false, "Merging in existing Attribute & Material Data...");
21042103

21052104
XivMdl ogMdl = null;
21062105

@@ -2116,6 +2115,8 @@ await Task.Run(async () =>
21162115
ogMdl = currentMdl;
21172116
}
21182117

2118+
loggingFunction(false, "Merging in existing Attribute & Material Data...");
2119+
21192120
// Apply our Model Modifier options to the model.
21202121
options.Apply(ttModel, currentMdl, ogMdl, loggingFunction);
21212122

xivModdingFramework/SqPack/FileTypes/Dat.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,7 @@ public async Task<long> WriteToDat(List<byte> importData, Mod modEntry, string i
15481548

15491549
var NewFilesNeedToBeAdded = !await index.FileExists(HashGenerator.GetHash(Path.GetFileName(internalFilePath)), HashGenerator.GetHash($"{Path.GetDirectoryName(internalFilePath).Replace("\\", "/")}"), dataFile);
15501550
var IsTexToolsAddedFileFlag = await index.FileExists(HashGenerator.GetHash(Path.GetFileName(internalFilePath + ".flag")), HashGenerator.GetHash($"{Path.GetDirectoryName(internalFilePath).Replace("\\", "/")}"), dataFile);
1551+
NewFilesNeedToBeAdded = NewFilesNeedToBeAdded || IsTexToolsAddedFileFlag || (modEntry != null && modEntry.IsCustomFile());
15511552

15521553
var datNum = 0;
15531554
var modDatPath = "";

0 commit comments

Comments
 (0)