Fixed LayeredFS not always encrypting 08.18 Fumens
This commit is contained in:
parent
b14c0871dc
commit
c7bf9e540f
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user