From eba21844aafea3165941d49cdb296bc6fd3704ab Mon Sep 17 00:00:00 2001 From: MaikyM <51415805+MaikyM@users.noreply.github.com> Date: Thu, 6 Feb 2020 11:25:26 -0600 Subject: [PATCH] AssetProperties unnecesary. --- .../Assets/IconCreator/ChallengeID/ChallengeBundleInfos.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FModel/Methods/Assets/IconCreator/ChallengeID/ChallengeBundleInfos.cs b/FModel/Methods/Assets/IconCreator/ChallengeID/ChallengeBundleInfos.cs index 2c23e0b5..7859e202 100644 --- a/FModel/Methods/Assets/IconCreator/ChallengeID/ChallengeBundleInfos.cs +++ b/FModel/Methods/Assets/IconCreator/ChallengeID/ChallengeBundleInfos.cs @@ -271,7 +271,7 @@ namespace FModel.Methods.Assets.IconCreator.ChallengeID JToken primaryAssetNameToken = token["struct_type"]["properties"][0]["tag_data"]["struct_type"]["properties"][1]["tag_data"]; if (primaryAssetNameToken != null) { - string primaryAssetName = GetChallengeStageContinuation(assetPath, primaryAssetNameToken.Value(), AssetProperties); + string primaryAssetName = GetChallengeStageContinuation(assetPath, primaryAssetNameToken.Value()); //this will catch the full path if asset exists to be able to grab his PakReader and List string primaryAssetNameFullPath = AssetEntries.AssetEntriesDict.Where(x => x.Key.ToLowerInvariant().Contains("/" + primaryAssetName.ToLowerInvariant())).Select(d => d.Key).FirstOrDefault(); @@ -293,7 +293,7 @@ namespace FModel.Methods.Assets.IconCreator.ChallengeID } } - static string GetChallengeStageContinuation(string assetPath, string assetName, JArray AssetProperties) + static string GetChallengeStageContinuation(string assetPath, string assetName) { string assetPathTemp = System.IO.Path.GetFileNameWithoutExtension(assetPath); string assetPathTempN = assetPathTemp.Substring(assetPathTemp.LastIndexOf("_") + 1);