Ejemplo n.º 1
0
        /// <summary>
        /// Extracts a packed file onto a real file name.
        /// </summary>
        /// <param name="args">Arguments.</param>
        public void Unpack(string[] args)
        {
            var bankFileName    = GetBankFileNameParam(args);
            var packedFilePath  = GetPackedFileParam(args);
            var targetDirectory = GetSourceFileNameOrTargetDirectoryParam(args);

            var bankFile = _LoadBankFile(bankFileName);

            bankFile.ExtractPackedFile(packedFilePath, targetDirectory, true);

            _moduleDispatcher.NoModuleOutput();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Performs changes in camera entry.
        /// </summary>
        /// <param name="args">Arguments.</param>
        public void Customize(string[] args)
        {
            var camFileName      = GetCamFileNameParam(args);
            var cameraId         = GetCamIdParam(args);
            var camInputFileName = GetCamInputFileParam(args);

            var camFile        = _LoadCameras(camFileName);
            var defaultCamFile = _LoadDefaultCameras();

            var customizeInput = _LoadCustomizeInputFile(camInputFileName);

            foreach (var view in customizeInput.Views)
            {
                _Customize(camFile, defaultCamFile, cameraId, view.ViewKind, view.CameraId, (NativeCameras.ViewType)view.ViewId);
            }

            camFile.Save();

            _moduleDispatcher.NoModuleOutput();
        }