コード例 #1
0
 public string GetFileUrl(string relativePath)
 {
     if (manifestLoader == null)
     {
         Debug.LogWarning($"A file URL was requested for {relativePath} but the manifest has not been instantiated.");
         return("");
     }
     if (manifestLoader.IsLoaded())
     {
         return(manifestLoader.GetManifest().TranslateFileUrl(relativePath));
     }
     Debug.LogWarning($"A file URL was requested for {relativePath}, but the manifest is not ready.");
     return("");
 }
コード例 #2
0
        /// <summary>
        /// ローカルDB取得
        /// </summary>
        public IEnumerator Setup(RuntimePlatform platform, IManifestLoader loader, SoundConfig config)
        {
            m_cacheDB = m_saveBuilder.Read(CacheDbLocation.FullPath);
            yield return(null);

            var manifest = loader.GetManifest(config.BuildMapName);

            m_builtinDatabase = config.BuildDatabase(platform);
            yield return(m_builtinDatabase.Build(platform, manifest));

            ChipstarLog.Log_ReadLocalTable(m_cacheDB, CacheDbLocation);
            yield break;
        }