Skip to content

Commit

Permalink
AssetProperties unnecesary.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikyM committed Feb 6, 2020
1 parent 1b6cb54 commit eba2184
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -271,7 +271,7 @@ private static void GetQuestData(JArray BundleProperties, string assetPath)
JToken primaryAssetNameToken = token["struct_type"]["properties"][0]["tag_data"]["struct_type"]["properties"][1]["tag_data"];
if (primaryAssetNameToken != null)
{
string primaryAssetName = GetChallengeStageContinuation(assetPath, primaryAssetNameToken.Value<string>(), AssetProperties);
string primaryAssetName = GetChallengeStageContinuation(assetPath, primaryAssetNameToken.Value<string>());

//this will catch the full path if asset exists to be able to grab his PakReader and List<FPakEntry>
string primaryAssetNameFullPath = AssetEntries.AssetEntriesDict.Where(x => x.Key.ToLowerInvariant().Contains("/" + primaryAssetName.ToLowerInvariant())).Select(d => d.Key).FirstOrDefault();
Expand All @@ -293,7 +293,7 @@ private static void GetQuestData(JArray BundleProperties, string assetPath)
}
}

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);
Expand Down

0 comments on commit eba2184

Please sign in to comment.