1
1
mirror of synced 2025-01-31 03:43:45 +01:00

Fixed LayeredFS not always encrypting 08.18 Fumens

This commit is contained in:
Farewell_ 2024-11-11 15:46:07 +01:00
parent b14c0871dc
commit c7bf9e540f
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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<unsigned char> buffer (32);
std::vector<unsigned char> buffer (28);
file.read (reinterpret_cast<char *> (buffer.data ()), buffer.size ());
// Check if the read bytes match the expected pattern
std::vector<unsigned char> 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;
}