/// <summary>
        /// 指定ファイルのバインド
        /// </summary>
        /// <param name="_cpkName"></param>
        /// <param name="bindId"></param>
        /// <returns></returns>
        private IEnumerator BindCPK(string _cpkName, string _versionHashName)
        {
            uint bindId = 0;

            if (m_manager == null)
            {
                Debug.LogWarning("Cant Exec Coroutine");
                yield break;
            }
            string      path   = CriPackageCacheController.GetOutputPath(_cpkName, _versionHashName);
            CriFsBinder binder = new CriFsBinder();

            CriFsBindRequest request = CriFsUtility.BindCpk(binder, path);

            bindId = request.bindId;

            // 待機
            yield return(request.WaitForDone(m_manager));

            if (string.IsNullOrEmpty(request.error))
            {
                // Succeeded
                // List に登録
                BindDict.Add(_cpkName, new BinderData(bindId, binder));
            }
            else
            {
                //Error
                Debug.LogWarning("Failed to bind CPK. (path=" + path + ")");
                Debug.LogWarning("Error:" + request.error);
            }
        }
Ejemplo n.º 2
0
 public CriFsBindRequest BindDirectory(CriFsBinder targetBinder, CriFsBinder srcBinder, string path)
 {
     var request = new CriFsBindRequest(
         CriFsBindRequest.BindType.Directory, targetBinder, srcBinder, path);
     this.AddRequest(request);
     return request;
 }
Ejemplo n.º 3
0
    public CriFsBindRequest BindFile(CriFsBinder targetBinder, CriFsBinder srcBinder, string path)
    {
        var request = new CriFsBindRequest(
            CriFsBindRequest.BindType.File, targetBinder, srcBinder, path);

        this.AddRequest(request);
        return(request);
    }