Exemplo n.º 1
0
        static void CheckConfigFile()
        {
            if (!File.Exists(ConfFilePath))
            {
                CTabFile confFile = new CTabFile();
                confFile.NewColumn("Key");
                confFile.NewColumn("Value");
                confFile.NewColumn("Comment");


                foreach (string[] strArr in DefaultConfigFileContent)
                {
                    int row = confFile.NewRow();
                    confFile.SetValue <string>(row, "Key", strArr[0]);
                    confFile.SetValue <string>(row, "Value", strArr[1]);
                    confFile.SetValue <string>(row, "Comment", strArr[2]);
                }
                confFile.Save(ConfFilePath);

                CDebug.Log("新建CosmosEngine配置文件: {0}", ConfFilePath);
                AssetDatabase.Refresh();
            }

            ConfFile = CTabFile.LoadFromFile(ConfFilePath);
        }
Exemplo n.º 2
0
    public static void SetupHistory(bool rebuild)
    {
        IsCheckMd5 = true;
        BuildVersion.Clear();
        if (!rebuild)
        {
            string   verFile = GetBuildVersionTab(); //MakeSureExportPath(VerCtrlInfo.VerFile, EditorUserBuildSettings.activeBuildTarget);
            CTabFile tabFile;
            if (File.Exists(verFile))
            {
                tabFile = CTabFile.LoadFromFile(verFile);

                foreach (CTabFile.RowInterator row in tabFile)
                {
                    BuildVersion[row.GetString("AssetPath")] =
                        new BuildRecord(
                            row.GetString("AssetMD5"),
                            row.GetString("AssetDateTime"),
                            row.GetInteger("ChangeCount"));
                }
            }
        }
        else
        {
        }
    }