feat(multiplayer): cato 1.0.c supports darwin-aarch64.

This commit is contained in:
huanghongxun
2021-10-09 15:45:09 +08:00
parent f4894ccb9d
commit 5ad46279c2

View File

@@ -58,7 +58,7 @@ import static org.jackhuang.hmcl.util.Logging.LOG;
*/ */
public final class MultiplayerManager { public final class MultiplayerManager {
private static final String CATO_DOWNLOAD_URL = "https://files.huangyuhui.net/maven/"; private static final String CATO_DOWNLOAD_URL = "https://files.huangyuhui.net/maven/";
static final String CATO_VERSION = "1.0.9"; static final String CATO_VERSION = "1.0.c";
private static final String CATO_PATH = getCatoPath(); private static final String CATO_PATH = getCatoPath();
public static final int CATO_AGREEMENT_VERSION = 2; public static final int CATO_AGREEMENT_VERSION = 2;
@@ -216,6 +216,8 @@ public final class MultiplayerManager {
case OSX: case OSX:
if (Architecture.CURRENT == Architecture.X86_64) { if (Architecture.CURRENT == Architecture.X86_64) {
return "cato/cato/" + MultiplayerManager.CATO_VERSION + "/cato-darwin-amd64"; return "cato/cato/" + MultiplayerManager.CATO_VERSION + "/cato-darwin-amd64";
} else if (Architecture.CURRENT == Architecture.ARM64) {
return "cato/cato/" + MultiplayerManager.CATO_VERSION + "/cato-darwin-arm64";
} else { } else {
return ""; return "";
} }