Skip to content

Commit a2b125f

Browse files
committed
Renamed 'Version' to 'Variant' in one incorrectly named place.
Made a private function Public for use in Textools
1 parent 4fffb5c commit a2b125f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xivModdingFramework/Materials/DataContainers/XivMtrl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ public string GetTextureRootDirectoy()
688688
/// Gets the item version this MTRL is attached to, based on directory.
689689
/// </summary>
690690
/// <returns></returns>
691-
public uint GetVersion()
691+
public uint GetVariant()
692692
{
693693
var match = Regex.Match(MTRLPath, "/v([0-9]{4})/");
694694
if (match.Success)
@@ -704,7 +704,7 @@ public uint GetVersion()
704704
/// <returns></returns>
705705
public string GetVariantString()
706706
{
707-
var version = GetVersion();
707+
var version = GetVariant();
708708

709709
var versionString = "";
710710
if (version > 0)

xivModdingFramework/Materials/FileTypes/Mtrl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ private async Task<List<TexTypePath>> GetTexNames(IEnumerable<string> texPathLis
893893
/// <param name="itemType">The type of the item</param>
894894
/// <param name="type">The item type whether Primary or Secondary</param>
895895
/// <returns>A tuple containing the mtrl folder and file, and whether it has a vfx</returns>
896-
private async Task<(string Folder, string File, bool HasVfx)> GetMtrlPath(IItemModel itemModel, XivRace xivRace, char part, XivItemType itemType, string type)
896+
public async Task<(string Folder, string File, bool HasVfx)> GetMtrlPath(IItemModel itemModel, XivRace xivRace, char part, XivItemType itemType, string type)
897897
{
898898
// The default version number
899899
var version = "0001";

0 commit comments

Comments
 (0)