Skip to content

Commit a517e38

Browse files
committed
Remove Variant/Version token, fix a bug with simple file list loading for PMPS
1 parent 29dbc01 commit a517e38

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

xivModdingFramework/Materials/DataContainers/XivMtrl.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public enum EMaterialFlags2 : ushort
8484
public class XivMtrl : ICloneable
8585
{
8686
public const string ItemPathToken = "{item_folder}";
87-
public const string MaterialSetToken = "{version}";
8887
public const string TextureNameToken = "{default_name}";
8988
public const string CommonPathToken = "{shared_folder}";
9089

@@ -559,12 +558,6 @@ public string TokenizePath(string path, XivTexType usage)
559558
path = path.Replace(commonPath, XivMtrl.CommonPathToken);
560559

561560

562-
var version = GetVariantString();
563-
if (version != "")
564-
{
565-
path = path.Replace(version, XivMtrl.MaterialSetToken);
566-
}
567-
568561
//var texName = GetDefaultTexureName(usage, false);
569562
//path = path.Replace(texName, XivMtrl.TextureNameToken);
570563
return path;
@@ -590,7 +583,6 @@ public string DetokenizePath(string path, MtrlTexture texture)
590583

591584

592585
path = path.Replace(ItemPathToken, rootPath);
593-
path = path.Replace(MaterialSetToken, variantString);
594586
path = path.Replace(CommonPathToken, GetCommonTextureDirectory());
595587
return path;
596588
}

xivModdingFramework/Mods/FileTypes/PMP.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,8 @@ internal static async Task<Dictionary<string, FileStorageInformation>> UnpackPMP
909909

910910
var defMod = pmp.DefaultMod as PmpStandardOptionJson;
911911
PmpStandardOptionJson option = null;
912-
if (defMod != null && (defMod.FileSwaps.Count > 0 || defMod.Manipulations.Count > 0 || defMod.Files.Count > 0))
912+
913+
if (defMod != null && (defMod.FileSwaps.Count > 0 || defMod.Manipulations.Count > 0 || defMod.Files.Count > 0) && pmp.Groups.Count == 0)
913914
{
914915
// Valid Default Mod Option
915916
option = defMod;

0 commit comments

Comments
 (0)