public static void Prefix(ApiWorld __0, ref OnDownloadComplete __2) { __2 = Il2CppSystem.Delegate.Combine( __2, (OnDownloadComplete) new Action <AssetBundleDownload>( _ => { if (CacheManager.WorldFileExists(__0.id)) { CacheManager.AddDirectory(CacheManager.ComputeAssetHash(__0.id)); } else { MelonLogger.Warning($"Failed to verify world {__0.id} was downloaded. No idea why this would happen"); } } ) ).Cast <OnDownloadComplete>(); }
public static void DownloadApiWorld(ApiWorld world, OnDownloadProgress onProgress, OnDownloadComplete onSuccess, OnDownloadError onError, bool bypassDownloadSizeLimit, UnpackType unpackType) { GetDownloadWorldDelegate(world, onProgress, onSuccess, onError, bypassDownloadSizeLimit, unpackType); }