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)
{
BinaryReader br = new(File.OpenRead(args[0]));
string path = Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//";
int count = br.ReadInt32();
for (int i = 0; i < count; i++)
{
string name = br.ReadString();
Directory.CreateDirectory(path + Path.GetDirectoryName(name));
BinaryWriter bw = new(File.Create(path + name));
bw.Write(br.ReadBytes(br.ReadInt32()));
bw.Close();
}
}
}