Skip to content

Commit d577e1f

Browse files
authored
[release/3.8] 优化对 Linux MIPS64el 平台的支持 (#4983)
#4886
1 parent db1ef60 commit d577e1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

HMCL/src/main/java/org/jackhuang/hmcl/util/NativePatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public static SupportStatus checkSupportedStatus(GameVersionNumber gameVersion,
249249

250250
if (minVersion != null) {
251251
if (gameVersion.compareTo(minVersion) >= 0) {
252-
if (maxVersion != null && gameVersion.compareTo(maxVersion) >= 0)
252+
if (maxVersion != null && gameVersion.compareTo(maxVersion) > 0)
253253
return SupportStatus.UNSUPPORTED;
254254

255255
String[] defaultGameVersions = GameVersionNumber.getDefaultGameVersions();

HMCL/src/main/resources/assets/HMCLauncher.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ case "$(uname -m)" in
3737
_HMCL_ARCH="riscv64";;
3838
loongarch64)
3939
_HMCL_ARCH="loongarch64";;
40+
mips64)
41+
_HMCL_ARCH="mips64el";;
4042
*)
4143
_HMCL_ARCH="unknown";;
4244
esac

0 commit comments

Comments
 (0)