Patch Java 5 or later test in the GameShell class #115

Open
opened 4 years ago by gpe · 0 comments
gpe commented 4 years ago
Owner
			if (SignLink.javaVersion != null && SignLink.javaVersion.startsWith("1.")) {
				@Pc(75) int i = 2;
				@Pc(77) int minorVersion = 0;
				while (i < SignLink.javaVersion.length()) {
					@Pc(89) char c = SignLink.javaVersion.charAt(i);
					if (c < '0' || c > '9') {
						break;
					}
					i++;
					minorVersion = minorVersion * 10 + c - '0';
				}
				if (minorVersion >= 5) {
					isJava5OrLater = true;
				}
			}
``` if (SignLink.javaVersion != null && SignLink.javaVersion.startsWith("1.")) { @Pc(75) int i = 2; @Pc(77) int minorVersion = 0; while (i < SignLink.javaVersion.length()) { @Pc(89) char c = SignLink.javaVersion.charAt(i); if (c < '0' || c > '9') { break; } i++; minorVersion = minorVersion * 10 + c - '0'; } if (minorVersion >= 5) { isJava5OrLater = true; } } ```
gpe added the
asm
patcher
improvement
labels 4 years ago
Sign in to join this conversation.
Loading…
There is no content yet.