/// <summary> /// 结束解压,开始加载器预处理 /// </summary> /// <returns></returns> IEnumerator endUnzip() { initProgress("正在加载幻灯片"); yield return(null); if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.PPTPlayer || PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.WeiKePlayer) { DirectoryInfo di = new DirectoryInfo(PPTHomePageController.TempFilePath); PPTGlobal.PPTPath = di.GetDirectories()[0].FullName; string id = System.Guid.NewGuid().ToString("N"); string renamePath = Vesal_DirFiles.get_dir_from_full_path(PPTGlobal.PPTPath) + id; //重命名文件夹,替换中文 Directory.Move(PPTGlobal.PPTPath, renamePath); PPTGlobal.PPTPath = renamePath; PPTGlobal.PPTPath = PPTGlobal.PPTPath.Replace("\\", "/"); if (!PPTGlobal.PPTPath.EndsWith("/")) { PPTGlobal.PPTPath += "/"; } } else { int pos = PublicClass.app.xml_path.LastIndexOf("."); string basePath = ""; if (pos >= 0) { basePath = PublicClass.app.xml_path.Substring(0, pos); } basePath = basePath + "/"; message = Vesal_DirFiles.GetFirstDirInDir(basePath); Debug.Log("basePath:" + basePath); //Vesal_DirFiles.ExtractAppData(ref basePath, ref message); string renamePath = basePath + PublicClass.app.app_id; if (basePath + message != renamePath) { //if (Directory.Exists(renamePath)) { // Directory.Delete(renamePath,true); //} Directory.Move(basePath + message, renamePath); message = PublicClass.app.app_id; } PPTGlobal.PPTPath = basePath + message + "/"; Debug.Log(PPTGlobal.PPTPath); } yield return(null); //progressPanel.SetActive(false); PPTGlobal.pptStatus = PPTGlobal.PPTStatus.initial; }