From 5f1ed6fd7fc9c5506d7314816297b9fd73402e3f Mon Sep 17 00:00:00 2001 From: MichaelHinrichs Date: Sat, 1 Jun 2024 14:05:20 -0500 Subject: [PATCH] Minor edits to Program. Update README. --- Program.cs | 11 ++++++----- README.md | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) 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.