diff --git a/Program.cs b/Program.cs index 05ce0b4..b50fb13 100644 --- a/Program.cs +++ b/Program.cs @@ -1,4 +1,5 @@ -using System.IO; +//Written for Requiem. https://store.steampowered.com/app/289780 +using System.IO; using System.IO.Compression; namespace Requiem_Extractor @@ -13,7 +14,7 @@ static void Main(string[] args) int fileCount = (int)(map.BaseStream.Length / 136); System.Collections.Generic.List maps = new(); - string path = Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]); + string path = Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//"; for (int i = 0; i < fileCount; i++) { Map map = Map.Read(); @@ -22,12 +23,12 @@ static void Main(string[] args) string name = new string(vdk.ReadChars(128)).TrimEnd('\0'); int sizeUncompressed = vdk.ReadInt32(); int sizeCompressed = vdk.ReadInt32(); - int isCompressed = vdk.ReadInt32(); int unknown = vdk.ReadInt32(); + int unknown2 = vdk.ReadInt32(); - Directory.CreateDirectory(path + "//" + Path.GetDirectoryName(name)); - FileStream fs = File.Create(path + "//" + name); + Directory.CreateDirectory(path + Path.GetDirectoryName(name)); + FileStream fs = File.Create(path + name); vdk.ReadInt16(); using (var ds = new DeflateStream(new MemoryStream(vdk.ReadBytes(sizeCompressed - 2)), CompressionMode.Decompress)) ds.CopyTo(fs); diff --git a/README.md b/README.md index 5c7ed9b..0e7a831 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Requiem-Extractor - A tool to extract from VDK files found in the game [Requiem](https://store.steampowered.com/app/289780). + A tool to extract from VDK files found in the game [Requiem](https://store.steampowered.com/app/289780).
+ Drag and drop a VDK or MAP file onto the application.