mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 03:30:44 -05:00
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: SPT-AKI/Modules#57 Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
0cabe9dc12
commit
bbf55a7031
@ -71,7 +71,8 @@ namespace Aki.Custom.Patches
|
|||||||
// platform manifest
|
// platform manifest
|
||||||
var path = $"{rootPath.Replace("file:///", string.Empty).Replace("file://", string.Empty)}/{platformName}/";
|
var path = $"{rootPath.Replace("file:///", string.Empty).Replace("file://", string.Empty)}/{platformName}/";
|
||||||
var filepath = path + 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
|
// load bundles
|
||||||
var bundleNames = manifest.GetAllAssetBundles().Union(BundleManager.Bundles.Keys).ToArray();
|
var bundleNames = manifest.GetAllAssetBundles().Union(BundleManager.Bundles.Keys).ToArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user