Update HMCLauncher (#2264)
* 更新 lang.h * 更新 main.cpp * 更新 HMCLauncher.sh
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
|
||||
#define ERROR_PROMPT L"The Java runtime environment is required to run HMCL and Minecraft,\n"\
|
||||
L"Click 'OK' to start downloading java.\n"\
|
||||
L"Please restart HMCL after installing Java."
|
||||
L"Please restart HMCL after installing Java.\n"\
|
||||
L"Click 'Help' go for help."
|
||||
|
||||
#define ERROR_PROMPT_ZH L"运行 HMCL 以及 Minecraft 需要 Java 运行时环境,点击“确定”开始下载。\n"\
|
||||
L"请在安装 Java 完成后重新启动 HMCL。"
|
||||
L"请在安装 Java 完成后重新启动 HMCL。\n"\
|
||||
L"点击“帮助”寻求帮助。"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "os.h"
|
||||
#include "java.h"
|
||||
#include "lang.h"
|
||||
#include <windows.h>
|
||||
|
||||
Version J8(TEXT("8"));
|
||||
|
||||
@@ -49,6 +50,10 @@ void FindJavaInDirAndLaunchJVM(const std::wstring &baseDir, const std::wstring &
|
||||
}
|
||||
}
|
||||
|
||||
void OpenHelpPage() {
|
||||
ShellExecute(0, 0, L"https://docs.hmcl.net/help.html", 0, 0, SW_SHOW);
|
||||
}
|
||||
|
||||
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
LPWSTR lpCmdLine, int nCmdShow) {
|
||||
std::wstring path, exeName, jvmOptions;
|
||||
|
||||
Reference in New Issue
Block a user