// Token: 0x060001EF RID: 495 RVA: 0x0000A5D4 File Offset: 0x000087D4 private CRIDesc.SheetDesc GetSheetDesc(string sheetName) { CRIDesc.SheetDesc result; try { CRIDesc.SheetDesc sheetDesc = this.GetSheetDescImpl(sheetName); if (sheetDesc != null) { result = sheetDesc; } else { sheetDesc = new CRIDesc.SheetDesc(); string text = string.Format("{0}.acb", sheetName); string text2 = string.Format("{0}.awb", sheetName); List <string> resourceFiles = this.GetResourceFiles(text); if (resourceFiles.Count > 0) { sheetDesc.m_acbFullPath = resourceFiles[0]; if (resourceFiles.Count > 1) { global::Debug.LogError(string.Format("More the one {0} ACB file", text)); } } List <string> resourceFiles2 = this.GetResourceFiles(text2); if (resourceFiles2.Count > 0) { sheetDesc.m_awbFullPath = resourceFiles2[0]; if (resourceFiles.Count > 1) { global::Debug.LogError(string.Format("More the one {0} AWB file", text2)); } } if (string.IsNullOrEmpty(sheetDesc.m_acbFullPath) && string.IsNullOrEmpty(sheetDesc.m_awbFullPath)) { global::Debug.LogError(string.Format("Invaild sheetName {0}", sheetName)); result = null; } else { sheetDesc.m_sheetName = sheetName; this.m_criDesc.m_sheetList.Add(sheetDesc); result = sheetDesc; } } } catch (Exception ex) { global::Debug.LogError(string.Format("AudioManager4CRI.GetSheetDesc( {0} ) {1}", sheetName, ex.Message)); result = null; } return(result); }
// Token: 0x060001F1 RID: 497 RVA: 0x0000A7A4 File Offset: 0x000089A4 public bool AllocSheetByCueName(string cueName) { string sheetName = this.GetSheetName(cueName); if (sheetName == string.Empty) { return(false); } CRIDesc.SheetDesc sheetDesc = this.GetSheetDesc(sheetName); if (sheetDesc == null) { global::Debug.LogError(string.Format("Failed to GetSheetDesc: cueName={0}", cueName)); return(false); } if (this.m_playbacksOfSheets.ContainsKey(sheetName)) { return(true); } this.m_CRIProvider.CRIAddCueSheet(sheetName, sheetDesc.m_acbFullPath, sheetDesc.m_awbFullPath); return(true); }