Example #1
0
    public void SaveProject(string folder)
    {
        //if (m_isDirty)
        {
//            m_isDirty = false;
            m_version.SavePackageVersion(folder + "/" + ResPath.GetPackageVersionTxt());
            SaveAllFileMD5(folder + "/PackedFileMD5.txt");
        }
    }
Example #2
0
    public void OnPackageDownload(string pckFile, int bytes)
    {
        m_downloadBytes += bytes;
        PackageVersion.Version v = new PackageVersion.Version();
        v.Init();
        if (m_versionPackage.HavePackage(pckFile))
        {
            v = m_versionPackage.LookupPackageVersion(pckFile);
        }
        if (m_remotePackage.HavePackage(pckFile))
        {
            v = m_remotePackage.LookupPackageVersion(pckFile);
        }
        m_versionPackage.AddPackage(pckFile, v);

        m_versionPackage.SavePackageVersion(ResPath.GetLocal(ResPath.GetPackageVersionTxt()));
    }