Skip to content

Commit 9d0f2e9

Browse files
committed
change order of checking for architecture when extracting snapshots
1 parent 9973b4a commit 9d0f2e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/jni/AssetExtractor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ void AssetExtractor::ExtractAssets(JNIEnv *env, jobject obj, jstring apk, jstrin
5858
continue;
5959
}
6060

61-
if (nameStr.find(ARMEABIV7) != std::string::npos && arch == ARMEABIV7) {
61+
if (arch == ARMEABIV7 && nameStr.find(ARMEABIV7) != std::string::npos) {
6262
DEBUG_WRITE("EXTRACTED THE armeabi-v7a architecture snapshot blob!");
6363
snapshotFound = 1;
64-
} else if (nameStr.find(X86) != std::string::npos && arch == X86) {
64+
} else if (arch == X86 && nameStr.find(X86) != std::string::npos) {
6565
DEBUG_WRITE("EXTRACTED THE x86 architecture snapshot blob!");
6666
snapshotFound = 1;
67-
} else if (nameStr.find(ARM64V8) != std::string::npos && arch == ARM64V8) {
67+
} else if (arch == ARM64V8 && nameStr.find(ARM64V8) != std::string::npos) {
6868
DEBUG_WRITE("EXTRACTED THE arm64-v8a architecture snapshot blob!");
6969
snapshotFound = 1;
7070
}

0 commit comments

Comments
 (0)