public static bool IsCached(string listFileName, bool useLogWritten, PreDownloader.CachingReport callback)
        {
            StringBuilder     targetLog         = (!useLogWritten) ? null : new StringBuilder(1024);
            BackgroundInstall backgroundInstall = new BackgroundInstall();

            return(backgroundInstall._IsCached(listFileName, true, targetLog, callback));
        }
Exemple #2
0
 public static void Stop()
 {
     if (UsingAssetRecorder.m_Instance != null)
     {
         UsingAssetRecorder.m_Instance.StopRecord();
         UsingAssetRecorder.m_Instance = null;
     }
 }
Exemple #3
0
 public static void Start(string listFileName)
 {
     if (UsingAssetRecorder.m_Instance != null)
     {
         UsingAssetRecorder.m_Instance.StopRecord();
     }
     UsingAssetRecorder.m_Instance = new BackgroundInstall();
     UsingAssetRecorder.m_Instance.StartRecord(listFileName);
 }
        public static bool Request(string listFileName, PreDownloader.DownlaodToComplete callback)
        {
            if (!Option.EnablePreDownload)
            {
                TsLog.LogWarning("[PreDownload] TsBundle.Predownloader.Rqeuset({0}) => Disabled pre-download", new object[]
                {
                    listFileName
                });
                return(false);
            }
            BackgroundInstall backgroundInstall = new BackgroundInstall();

            return(backgroundInstall._RequestPreDownload(listFileName, callback));
        }
        public static bool ReportNoCached(string listFileName, PreDownloader.CachingReport callback)
        {
            BackgroundInstall backgroundInstall = new BackgroundInstall();

            return(backgroundInstall._IsCached(listFileName, false, new StringBuilder(1024), callback));
        }