Example #1
0
 public BannerFile(Filesystem parent, Directory parentDir, File headerFile)
     : base(parent, parentDir, -9, "banner.bin", headerFile, 0x68, 0, true)
 {
     endFile   = null;
     fileSizeP = 0x840;
     refreshOffsets();
 }
Example #2
0
 public File(Filesystem parent, Directory parentDir, string name, int id)
 {
     this.parentP    = parent;
     this.parentDirP = parentDir;
     this.nameP      = name;
     this.idP        = id;
 }
Example #3
0
 public Directory(Filesystem parent, Directory parentDir, bool system, string name, int id)
 {
     this.parent          = parent;
     this.parentDirP      = parentDir;
     this.isSystemFolderP = system;
     this.nameP           = name;
     this.idP             = id;
 }
Example #4
0
 public PhysicalFile(Filesystem parent, Directory parentDir, int id, string name, int alBeg, int alSize)
     : base(parent, parentDir, name, id)
 {
     this.fileBeginP      = alBeg;
     this.fileSizeP       = alSize;
     this.canChangeOffset = false;
     this.canChangeSize   = false;
     refreshOffsets();
 }
Example #5
0
 public PhysicalFile(Filesystem parent, Directory parentDir, int id, string name, File alFile, int alBeg, int alEnd)
     : base(parent, parentDir, name, id)
 {
     this.beginFile   = alFile;
     this.endFile     = alFile;
     this.beginOffset = alBeg;
     this.endOffset   = alEnd;
     refreshOffsets();
 }
Example #6
0
        public FilesystemBrowserDialog(Filesystem fs)
        {
            InitializeComponent();
            this.MdiParent = MdiParentForm.instance;
            LanguageManager.ApplyToContainer(this, "FilesystemBrowserDialog");

            this.fs = fs;
            filesystemBrowser1.Load(fs);

            this.Icon = Properties.Resources.nsmbe;
        }
Example #7
0
        public new void Load(Filesystem fs)
        {
            this.fs = fs;

            extractFileDialog.Filter = LanguageManager.Get("Filters", "all");
            replaceFileDialog.Filter = LanguageManager.Get("Filters", "all");

            TreeNode main = new TreeNode(fs.mainDir.name, 0, 0);

            main.Tag = fs.mainDir;

            loadDir(main, fs.mainDir);

            fileTreeView.Nodes.Clear();
            fileTreeView.Nodes.Add(main);
            main.Expand();
        }
Example #8
0
 public FileWithLock(Filesystem parent, Directory parentDir, string name, int id)
     : base(parent, parentDir, name, id)
 {
 }
Example #9
0
 public PhysicalFile(Filesystem parent, Directory parentDir, string name)
     : base(parent, parentDir, name, -1)
 {
 }
Example #10
0
 public HeaderFile(Filesystem parent, Directory parentDir)
     : base(parent, parentDir, -8, "header.bin", 0, 0x4000)
 {
 }