Ejemplo n.º 1
0
        public void LoadMetaFiles()
        {
            if (!File.Exists(GuidPathMapFilePath))
            {
                m_GuidPathMap = new Dictionary <Guid, string>();
            }

            if (!File.Exists(GuidHashMapFilePath))
            {
                m_GuidHashMap = new Dictionary <Guid, Int64>();
            }

            var newPathMap = m_Serializer.LoadObject <Dictionary <Guid, string> >(GuidPathMapFilePath);

            if (newPathMap != null)
            {
                m_GuidPathMap = newPathMap;
            }

            var newHashMap = m_Serializer.LoadObject <Dictionary <Guid, string> >(GuidPathMapFilePath);

            if (newHashMap != null)
            {
                m_GuidPathMap = newHashMap;
            }

            m_GuidHashMapDirty = false;
            m_GuidPathMapDirty = false;
        }
Ejemplo n.º 2
0
        public void RestoreSettings()
        {
            var lastPaths = m_Serializer.LoadObject <string[]>(FilePath);

            if (lastPaths != null)
            {
                LastKnownProjectPaths = lastPaths.ToList();
            }

            if (LastKnownProjectPaths == null)
            {
                LastKnownProjectPaths = new List <string>();
            }
        }