Example #1
0
 public static void BuildFile(FileInfo file, ResourceDirectory parent, ResourceSpring target)
 {
     ResourceFile new_file = new ResourceFile(target);
     new_file.source_file = file.FullName;
     new_file.parent = parent;
     new_file.name = file.Name;
     parent.entries.Add(new_file);
 }
Example #2
0
 public static ResourceFile FileFromStream(BinaryReader rd, ResourceSpring owner)
 {
     ResourceFile file = new ResourceFile(owner);
     file.handler = rd.ReadString();
     file.length = rd.ReadInt64();
     file.offset = rd.ReadInt64();
     return file;
 }