Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议修改启动游戏的 Java 路径选择逻辑 #1907

Open
Tracked by #2207
ZekerZhayard opened this issue Dec 8, 2022 · 0 comments
Open
Tracked by #2207

建议修改启动游戏的 Java 路径选择逻辑 #1907

ZekerZhayard opened this issue Dec 8, 2022 · 0 comments

Comments

@ZekerZhayard
Copy link
Contributor

ZekerZhayard commented Dec 8, 2022

因为在 https://github.com/huanghongxun/HMCL/discussions/1904 里,有相当一部分人是选错了 Java 版本启动游戏导致的崩溃,

因此建议当用户选择 自动选择合适的 Java 时:

  • 当 version json 存在 javaVersion 属性时:
    • 当 HMCL 检测到用户安装了对应版本的 Java 时,用对应版本的 Java 启动游戏;
    • 当用户没有安装时,下载 Mojang 提供的 jre 启动游戏;
  • 当 version json 不存在 javaVersion 属性时:
    • 使用已有的选择 Java 的逻辑。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants