Exemple #1
0
    //写本地版本文件
    public UpdateRetCode SetLocalVersion(ELEMENT_VER ver)
    {
        try
        {
            StreamWriter writer = FileOperate.CreateTextFile(strGameOldVerFile);
            if (writer == null)
            {
                return(UpdateRetCode.file_err);
            }

            writer.WriteLine(ver.ToString());
            writer.Close();
        }
        catch (Exception)
        {
            return(UpdateRetCode.file_err);
        }

        return(UpdateRetCode.success);
    }