Beispiel #1
0
        public bool Identify(string filename)
        {
            bool result = true;

            try
            {
                KUP.Load(filename);
            }
            catch (Exception)
            {
                result = false;
            }

            return(result);
        }
Beispiel #2
0
        public LoadResult Load(string filename, bool autoBackup = false)
        {
            LoadResult result = LoadResult.Success;

            _fileInfo = new FileInfo(filename);

            if (_fileInfo.Exists)
            {
                _kup = KUP.Load(_fileInfo.FullName);

                foreach (Entry entry in _kup.Entries)
                {
                    entry.PointerCleanup();
                }
            }
            else
            {
                result = LoadResult.FileNotFound;
            }

            return(result);
        }