Exemple #1
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _g1t = new G1T(FileInfo.OpenRead());

                _bitmaps = _g1t.bmps.Select((b, i) => new G1TBitmapInfo {
                    Bitmap = b, Format = _g1t.settings[i].Format.FormatName
                }).ToList <BitmapInfo>();
            }
        }
Exemple #2
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                var platform = Platform.PS;
                if (Path.GetFileName(filename).ToLower().Contains("vita"))
                {
                    platform = Platform.Vita;
                }
                if (Path.GetFileName(filename).ToLower().Contains("3ds"))
                {
                    platform = Platform.N3DS;
                }
                _g1t = new G1T(FileInfo.OpenRead(), platform);

                _bitmaps = _g1t.bmps.Select((b, i) => new G1TBitmapInfo {
                    Bitmap = b, Format = _g1t.settings[i].Format.FormatName, Platform = platform
                }).ToList <BitmapInfo>();
            }
        }