Check if paths exists
Some checks failed
Android CI / build (push) Failing after 3h14m58s

This commit is contained in:
chiteroman 2025-01-11 11:37:44 +01:00
parent 51b38eab0d
commit 07eb6523de
No known key found for this signature in database

View File

@ -449,10 +449,15 @@ static void companion(int fd) {
std::vector<uint8_t> dex, json; std::vector<uint8_t> dex, json;
if (std::filesystem::exists(DEX_PATH)) {
dex = readFile(DEX_PATH); dex = readFile(DEX_PATH);
}
if (std::filesystem::exists(PIF_JSON)) {
json = readFile(PIF_JSON); json = readFile(PIF_JSON);
if (json.empty()) json = readFile(PIF_JSON_DEFAULT); } else if (std::filesystem::exists(PIF_JSON_DEFAULT)) {
json = readFile(PIF_JSON_DEFAULT);
}
int dexSize = static_cast<int>(dex.size()); int dexSize = static_cast<int>(dex.size());
int jsonSize = static_cast<int>(json.size()); int jsonSize = static_cast<int>(json.size());