예제 #1
0
        private FFData GetFFData(string filePath)
        {
            FFData result = new FFData(filePath);

            result.Parse();
            return(result);
        }
예제 #2
0
        public void OpenFastfile(string path)
        {
            OnProgressChanged?.Invoke(20);
            ffData = GetFFData(path);

            OnProgressChanged?.Invoke(40);
            zoneData = GetZoneData();

            OnProgressChanged?.Invoke(60);
            assetData = GetAssetData();

            OnProgressChanged?.Invoke(80);
            foreach (RawFileData r in assetData.RawFiles)
            {
                OnRawfileDiscovered?.Invoke(r.Index, r.Name, r.OriginalName, r.OriginalSize);
            }

            OnProgressChanged?.Invoke(100);
            foreach (LocalizedStringData ls in assetData.LocalizedString)
            {
                OnLocalizedStringDiscovered?.Invoke(ls.Index, ls.Prefix, ls.Key);
            }

            OnProgressChanged?.Invoke(0);
        }