From bbf55a70319966983e65361adf82e025caeb8f41 Mon Sep 17 00:00:00 2001 From: DrakiaXYZ Date: Sat, 13 Jan 2024 19:47:41 +0000 Subject: [PATCH] Fix the EasyAssetsPatch error some users gets (!57) - Prioritize loading the JSON manifest instead of the binary manifest Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Modules/pulls/57 Co-authored-by: DrakiaXYZ Co-committed-by: DrakiaXYZ --- project/Aki.Custom/Patches/EasyAssetsPatch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/Aki.Custom/Patches/EasyAssetsPatch.cs b/project/Aki.Custom/Patches/EasyAssetsPatch.cs index d77d9c3..5a2c01b 100644 --- a/project/Aki.Custom/Patches/EasyAssetsPatch.cs +++ b/project/Aki.Custom/Patches/EasyAssetsPatch.cs @@ -71,7 +71,8 @@ namespace Aki.Custom.Patches // platform manifest var path = $"{rootPath.Replace("file:///", string.Empty).Replace("file://", string.Empty)}/{platformName}/"; var filepath = path + platformName; - var manifest = (File.Exists(filepath)) ? await GetManifestBundle(filepath) : await GetManifestJson(filepath); + var jsonPath = filepath + ".json"; + var manifest = (File.Exists(jsonPath)) ? await GetManifestJson(filepath) : await GetManifestBundle(filepath); // load bundles var bundleNames = manifest.GetAllAssetBundles().Union(BundleManager.Bundles.Keys).ToArray();