예제 #1
0
파일: Patches.cs 프로젝트: VRCMG/VRChatMods
 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>();
 }
예제 #2
0
 public static void DownloadApiWorld(ApiWorld world, OnDownloadProgress onProgress, OnDownloadComplete onSuccess, OnDownloadError onError, bool bypassDownloadSizeLimit, UnpackType unpackType)
 {
     GetDownloadWorldDelegate(world, onProgress, onSuccess, onError, bypassDownloadSizeLimit, unpackType);
 }