mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 11:02:40 +02:00
This commit is contained in:
parent
51b38eab0d
commit
07eb6523de
@ -449,10 +449,15 @@ static void companion(int fd) {
|
||||
|
||||
std::vector<uint8_t> dex, json;
|
||||
|
||||
dex = readFile(DEX_PATH);
|
||||
if (std::filesystem::exists(DEX_PATH)) {
|
||||
dex = readFile(DEX_PATH);
|
||||
}
|
||||
|
||||
json = readFile(PIF_JSON);
|
||||
if (json.empty()) json = readFile(PIF_JSON_DEFAULT);
|
||||
if (std::filesystem::exists(PIF_JSON)) {
|
||||
json = readFile(PIF_JSON);
|
||||
} else if (std::filesystem::exists(PIF_JSON_DEFAULT)) {
|
||||
json = readFile(PIF_JSON_DEFAULT);
|
||||
}
|
||||
|
||||
int dexSize = static_cast<int>(dex.size());
|
||||
int jsonSize = static_cast<int>(json.size());
|
||||
|
Loading…
Reference in New Issue
Block a user