public VirtualFileSystemInfo(string path, ulong length, ulong offset, VirtualDirectoryInfo parent, bool preCheck = true) { var isDirectory = false; FullName = path; if (length == 0) { if (!File.GetAttributes(path).HasFlag(FileAttributes.Directory)) { length = (ulong)new FileInfo(path).Length; } else { isDirectory = true; } } FileLength = length; ParentDefinedLength = length; Offset = offset; Parent = parent; if (Parent != null) { Initialized = Parent.Initialized; Obfuscation = Parent.Obfuscation; VFSIBytes = Parent.VFSIBytes; } else if (!isDirectory && preCheck) { Initialize(); } }
public HIPFileInfo(string path, ulong length, ulong offset, VirtualDirectoryInfo parent, bool preCheck = true) : base(path, length, offset, parent, preCheck) { InitGetHeader(); }
public HPLFileInfo(string path, ulong length, ulong offset, VirtualDirectoryInfo parent, bool preCheck = true) : base(path, length, offset, parent, preCheck) { }