Add hmcl.self_integrity_check.disable option

This commit is contained in:
yushijinhun
2018-09-22 17:43:12 +08:00
parent cbecca5f55
commit 4c9cb99a94
2 changed files with 8 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ public final class UpdateChecker {
}
private static RemoteVersion checkUpdate(UpdateChannel channel) throws IOException {
if (!IntegrityChecker.isSelfVerified()) {
if (!IntegrityChecker.isSelfVerified() && !"true".equals(System.getProperty("hmcl.self_integrity_check.disable"))) {
throw new IOException("Self verification failed");
}