You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
686 B

//Written for FEZ. https://store.steampowered.com/app/224760/
internal class Program
{
private static void Main(string[] args)
{
7 months ago
BinaryReader br = new(File.OpenRead(args[0]));
string path = Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//";
7 months ago
int count = br.ReadInt32();
for (int i = 0; i < count; i++)
{
string name = br.ReadString();
7 months ago
Directory.CreateDirectory(path + Path.GetDirectoryName(name));
BinaryWriter bw = new(File.Create(path + name));
bw.Write(br.ReadBytes(br.ReadInt32()));
bw.Close();
}
}
7 months ago
}