示例#1
0
 public TexUnpacker(UnpackGame game)
 {
     Game                = game;
     VirtualFS           = new VirtualFileSystem();
     BaseMemoryCommitted = 0;
     FilesCompleted      = 0;
 }
示例#2
0
        public void LoadEbls(UnpackGame game)
        {
            var archiveDict = new EblDictionary(File.ReadAllText($@"res\{game.Config.DictionaryPath}"));

            foreach (UnpackEbl ebl in game.Config.Ebls)
            {
                LoadEbl(ebl, game.Settings.GameDirectory, archiveDict, game.Config.BHD5Game);
            }
        }
示例#3
0
        public MainWindow()
        {
            Progress       = new Progress <ProgressReport>(UpdateProgress);
            ErrorsProgress = new Progress <string>(UpdateErrors);
            InitializeComponent();
            Title = $"TexPup {System.Windows.Forms.Application.ProductVersion}";

            Games = new UnpackGame[]
            {
                LoadGame(GameType.DarkSouls3, "DarkSouls3Config.xml", Properties.Settings.Default.DarkSouls3Settings),
                LoadGame(GameType.Sekiro, "SekiroConfig.xml", Properties.Settings.Default.SekiroSettings),
            };
            GameComboBox.ItemsSource = Games;
        }
示例#4
0
        public TexPacker(UnpackGame game)
        {
            Game                = game;
            VirtualFS           = new VirtualFileSystem();
            BaseMemoryCommitted = 0;
            FilesCompleted      = 0;

            if (game.Settings.PackMode == PackMode.ModEngine)
            {
                OutputDirectory = TPUtil.ReadModEngineDirectory(Game.Settings.GameDirectory);
            }
            else if (game.Settings.PackMode == PackMode.UXM)
            {
                OutputDirectory = Game.Settings.GameDirectory;
            }
            else
            {
                throw new NotImplementedException($"Unknown pack mode {Game.Settings.PackMode}");
            }
            OutputDirectory = OutputDirectory.TrimEnd('\\');
        }