From c7bf9e540f2c653bbdc9f72cc4ff76a082b19dd3 Mon Sep 17 00:00:00 2001 From: KIT! Date: Mon, 11 Nov 2024 15:46:07 +0100 Subject: [PATCH] Fixed LayeredFS not always encrypting 08.18 Fumens --- README.md | 1 + src/patches/layeredfs.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90569e8..c22477d 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ It currently supports the following versions: ## Setup Copy the extracted contents of `dist.zip` to the same directory as Taiko.exe +If your game hangs on a black screen at launch for more than a minute, Start Taiko.exe as Administrator ! ### config.toml diff --git a/src/patches/layeredfs.cpp b/src/patches/layeredfs.cpp index 5f8f44e..1a8d759 100644 --- a/src/patches/layeredfs.cpp +++ b/src/patches/layeredfs.cpp @@ -151,12 +151,12 @@ bool IsFumenEncrypted (const std::string &filename) { std::ifstream file (filename, std::ios::binary); file.seekg (0x210, std::ios::beg); - std::vector buffer (32); + std::vector buffer (28); file.read (reinterpret_cast (buffer.data ()), buffer.size ()); // Check if the read bytes match the expected pattern std::vector expected_bytes = {0x00, 0x01, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00}; + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; return buffer != expected_bytes; }