Commit Graph

390 Commits

Author SHA1 Message Date
huangyuhui
0812c9025d Do not check game asset hash code for every launching 2018-08-18 02:00:00 +08:00
huangyuhui
4c59ed3ccf Fix installing MultiMC modpack 2018-08-18 01:12:22 +08:00
huangyuhui
43d8d96608 Add doublequotes when doublequotes exist in windows batch 2018-08-18 00:43:55 +08:00
huangyuhui
26a6a7d883 Add doublequotes when special characters exist in launch script. Closes #420 2018-08-18 00:32:37 +08:00
huangyuhui
7c3853b0e6 Not logging command line in ProcessStoppedEvent 2018-08-17 22:10:11 +08:00
huangyuhui
53aecf38e0 Support displaying Rift mod information 2018-08-17 22:09:37 +08:00
huangyuhui
3df35aa373 Translate ZipError into ZipException since ZipError is not IOException 2018-08-17 21:53:29 +08:00
huangyuhui
543eaa4f66 Force cancel using custom log4j config 2018-08-17 21:52:35 +08:00
huangyuhui
3a851b7f1a Fix unable to launch 1.13 with Rift 2018-08-17 21:51:25 +08:00
huangyuhui
e376da208d Fix duplicate JavaVersions in Windows. Closes #419 2018-08-14 10:44:24 +08:00
huangyuhui
9e2cb25d01 Convert old offline account setings 2018-08-14 00:08:35 +08:00
huanghongxun
b079940cd9 Fix uniquing text2speech and its native library. Closes #418 2018-08-11 09:45:31 +08:00
yushijinhun
8e6bcd969e
Refactor JavaVersion 2018-08-09 13:49:16 +08:00
yushijinhun
6777dd7ea7
Fix UnsupportedOperationException in java lookup
Mentioned in #412
2018-08-09 13:22:49 +08:00
yushijinhun
17f71eaa21
Fixes FileSystemNotFoundException in createZipFileSystem 2018-08-09 11:34:38 +08:00
huanghongxun
54814181b9 Change xz compressing level to 6 since CI server does not have enough memory 2018-08-08 12:57:42 +08:00
huanghongxun
a2b74b8e78 Fix getImplementationVersion returning null on Java 9. 2018-08-08 10:02:34 +08:00
huanghongxun
09730d74e0 Merge branch 'rewrite-upgrade' of https://github.com/yushijinhun/HMCL into rewrite-upgrade 2018-08-07 22:18:58 +08:00
huanghongxun
61fd581ef5 Hide the separator line between refreshNavButton and window buttons when refreshNavButton is hidden 2018-08-07 18:08:20 +08:00
huanghongxun
51afcf2dee Use ZipFileSystem instead of commons-compress 2018-08-07 11:53:05 +08:00
huanghongxun
cadafe13e1 Remove IOUtils.closeQuietly 2018-08-07 11:53:05 +08:00
yushijinhun
3b42ba9375
Add version query when checking for update 2018-08-01 15:54:52 +08:00
huangyuhui
e31120be21 Friendly prompt that it cannot download some libraries successfully. 2018-07-22 18:50:44 +08:00
huangyuhui
c830bbc703 reorder version in main page 2018-07-21 21:58:46 +08:00
yushijinhun
cb6d8a88f1
Fix the old account isn't replaced when adding a same account 2018-07-21 12:31:08 +08:00
yushijinhun
170189c344
Refactor accounts 2018-07-20 20:26:27 +08:00
yushijinhun
f9e9c9d38b
Use LinkedHashMap for mapOf 2018-07-20 20:26:27 +08:00
huangyuhui
1b62972f06 Fix 1.13 version parsing 2018-07-20 11:44:50 +08:00
yushijinhun
ec41c13b45
Update docs for tasks in org.jackhuang.hmcl.download.game 2018-07-18 20:05:54 +08:00
yushijinhun
486ca434ff
Remove proxy HMCLDependencyManager 2018-07-18 20:05:54 +08:00
yushijinhun
06806bd383
Remove proxy from FileDownloadTask/GetTask/NetworkUtils 2018-07-18 20:05:54 +08:00
yushijinhun
2f6c7e1ce2
Remove proxy from AccountFactory 2018-07-18 20:05:54 +08:00
yushijinhun
846f383f7b
Remove backgroundImageTypeProperty 2018-07-17 22:56:00 +08:00
yushijinhun
b0d71a5511
Let Config implement Observable 2018-07-17 22:56:00 +08:00
yushijinhun
5cf6ef88a6
Let Account implement Observable 2018-07-17 17:04:27 +08:00
huangyuhui
b5f72af513 Friendly hint of failing to rename game version 2018-07-16 20:39:21 +08:00
huangyuhui
1532893c5f Change current directory to run directory for launching scripts 2018-07-16 19:51:12 +08:00
huangyuhui
03bccf16d4 Remove replacement of logs 2018-07-11 20:56:36 +08:00
huangyuhui
dfd5a82112 Fix #365 by blocking all hacked Minecraft logs text as XML 2018-07-11 20:11:09 +08:00
huangyuhui
7dad8d452f Filter preview version of OptiFine 2018-07-11 13:08:08 +08:00
yushijinhun
0150e2a8d7
Support downloading authlib-injector from BMCLAPI 2018-07-09 13:17:19 +08:00
yushijinhun
333b11c19f
Fix uncaught JsonParseException, mentioned in #367 2018-07-08 10:11:14 +08:00
yushijinhun
80815fc3a0
authlib-injector DnD support 2018-07-07 23:04:56 +08:00
huangyuhui
a853374a88 Support new MultiMC modpack 2018-07-07 00:48:48 +08:00
huangyuhui
1f30c299a5 Fix #360 2018-07-01 13:34:52 +08:00
huanghongxun
c887d7e649
Merge pull request #358 from yushijinhun/authlib-injector
重构 authlib-injector 下载,并切换到新 API
2018-07-01 11:54:55 +08:00
yushijinhun
3fc7743a14
Add missing license header 2018-06-30 22:45:57 +08:00
yushijinhun
2a232f70db
Refactor authlib-injector downloading, switch to new API 2018-06-30 22:45:57 +08:00
yushijinhun
7ee7ef25f9
Refactor integrity check in FileDownloadTask, support multi algorithms 2018-06-30 22:43:57 +08:00
huangyuhui
2bd4bc1472 Add debug message in Task.run 2018-06-30 22:24:46 +08:00
yushijinhun
a82eb996a4
Add missing license header 2018-06-30 21:54:31 +08:00
yushijinhun
9315684ee3
Use CredentialExpiredException to indicate password login
instead of Non-ServerDisconnectException
2018-06-30 21:53:11 +08:00
yushijinhun
cfb0526cbb
Fix potential NPE in YggdrasilAccount(selectedProfile is null) 2018-06-30 20:54:27 +08:00
yushijinhun
9fa56a9cd4
Regard token to be invalid only when remote throws ForbiddenOperationException 2018-06-30 18:52:37 +08:00
huangyuhui
d9293f4da8 Display remote error message when RemoteAuthenticationException thrown 2018-06-21 19:31:16 +08:00
huangyuhui
573f41611d Force using Java 8 when launching Minecraft 1.13 or later 2018-06-17 18:13:47 +08:00
yushijinhun
bdee9ea72f
将获取验证服务器信息的代码移入AuthlibInjectorServer 2018-06-17 14:26:38 +08:00
yushijinhun
110149d0e6
AuthlibInjectorAccountFactory的addtionalData改为AuthlibInjectorServer类型 2018-06-16 23:14:04 +08:00
yushijinhun
76a259c107
AuthlibInjectorAccount中存储AuthlibInjectorServer对象而不是url 2018-06-16 21:26:36 +08:00
yushijinhun
5f40d01fb4
在AuthlibInjectorAccountFactory中使用AuthlibInjectorServer而不是url 2018-06-16 21:26:36 +08:00
yushijinhun
10d4084dde
AuthlibInjectorServerInfo重命名为AuthlibInjectorServer
更正其它措辞:ip->url
2018-06-16 21:26:34 +08:00
yushijinhun
22732fee6a
存储AuthlibInjectorServerInfo对象而不是url字符串 2018-06-16 21:24:30 +08:00
yushijinhun
593159f4a6
将DEFAULT_ICON移至Constants, 并使用懒加载
当类初始化时, JavaFX可能还未启动, 这将使图像加载失败
2018-06-16 20:10:10 +08:00
huangyuhui
eb565285b2 Fix curse mod downloading 2018-06-10 20:05:36 +08:00
huangyuhui
38c6bce2c0 Change log folder to ~/.hmcl 2018-06-09 17:37:43 +08:00
yushijinhun
631337c451
YggdrasilAccount记录角色uuid而不是名称
注:旧版本无法读取此版本配置(移除了character)。
2018-06-08 21:13:33 +08:00
yushijinhun
4f51e377ae
移除canPlayOffline() 2018-06-08 21:09:35 +08:00
yushijinhun
e71c06a0d0
Arguments.addXXX改为链式调用 2018-06-08 21:09:35 +08:00
yushijinhun
13aabde5d9
完善Account文档 2018-06-08 21:09:35 +08:00
huanghongxun
e3f371f457
Merge pull request #344 from yushijinhun/javafx
修复YggdrasilAccount读取到了错误的character
2018-06-08 16:36:50 +08:00
yushijinhun
6ee99b5736
修复YggdrasilAccount读取到了错误的character
引入:6c4231a6b2 (diff-839dd42e51cd641828b00c5302c02b12R50)
2018-06-08 16:31:56 +08:00
huangyuhui
37a39098f8 Try to fix VersionNotFoundException. Closes #298 2018-06-08 16:05:33 +08:00
huangyuhui
110b7cb06f Should fix 'Never get to here' 2018-06-08 13:55:38 +08:00
huangyuhui
475e6e5511 Remove redundant URLs that download providers provide. Mentioned in #242 2018-06-08 13:13:42 +08:00
huangyuhui
f640922a50 Optimize imports 2018-06-08 12:47:34 +08:00
huangyuhui
118a6cf0d1 Fasten version item construction 2018-06-08 12:45:44 +08:00
yushijinhun
61acbcec0d
移除GameProfile类的TypeAdapter 2018-06-07 22:28:17 +08:00
yushijinhun
06af79e2b4
移除对legcay账户的支持 2018-06-07 22:25:31 +08:00
yushijinhun
6782602141
重构YggdrasilService相关代码 2018-06-07 21:12:38 +08:00
yushijinhun
8df17ae38a
使用静态方法pair()替代new Pair<>() 2018-06-07 21:08:25 +08:00
yushijinhun
6a04ab37d7
清理Hex 2018-06-07 12:17:58 +08:00
yushijinhun
27c9abd9ed
清理DigestUtils 2018-06-07 12:16:34 +08:00
yushijinhun
a08be2e11d
移除Charsets类 2018-06-07 11:47:36 +08:00
huanghongxun
17615b1791
Merge pull request #340 from yushijinhun/javafx
修复 Java 选择相关 bug
2018-06-07 01:15:44 +08:00
yushijinhun
d75c3b584a
修复加载JREs时可能的并发修改异常 2018-06-07 01:06:13 +08:00
huangyuhui
20f919b93e Merge branch 'javafx' of https://github.com/huanghongxun/HMCL into javafx 2018-06-07 00:53:56 +08:00
huangyuhui
20244fe5cc Fasten versions loading 2018-06-07 00:50:15 +08:00
yushijinhun
6a89f0a661
将当前Java版本包含在getJREs()中 2018-06-07 00:28:33 +08:00
huanghongxun
3a9efdb03e
Merge pull request #339 from yushijinhun/multiple-java
Linux下自动检测Java + 允许多个相同版本的JRE
2018-06-06 23:57:24 +08:00
huangyuhui
a9261b759b Shutdown Now to prevent NPE when task executed after app closed 2018-06-06 23:52:23 +08:00
yushijinhun
6b02dc3cd5
允许多个相同版本的Java共存 2018-06-06 23:43:58 +08:00
yushijinhun
afa37c0d2f
自动检测Linux下的Java 2018-06-06 23:01:27 +08:00
yushijinhun
bbe584bd91
修复无法显示未设置皮肤的Yggdrasil账户的皮肤的问题 2018-06-02 19:21:41 +08:00
yushijinhun
2e46d76165
移除Lang.get(Map,Object,Class) 2018-05-27 12:40:45 +08:00
yushijinhun
23037da406
移除对Unsafe的使用 2018-05-27 12:13:27 +08:00
yushijinhun
6c0d6ee0cf
通过非反射方法获取总物理内存 2018-05-27 11:04:39 +08:00
huangyuhui
e407994103 Fixed #331 2018-05-17 16:46:16 +08:00
huangyuhui
bda2149c02 Fix #326 2018-04-30 01:59:33 +08:00
huangyuhui
03383510ef Disable accept button in AddAccountPage 2018-03-09 16:45:12 +08:00
huangyuhui
e8cf9644eb Fix IllegalArgumentException: Invalid UUID String 2018-03-09 16:31:39 +08:00
huangyuhui
fb1fc92b7c Fix optifine 2018-03-06 11:19:21 +08:00
huangyuhui
b200105a85 Fix Liteloader installing of BMCLAPI 2018-03-06 10:13:48 +08:00
huanghongxun
57d3275856
Merge branch 'javafx' into switch-to-https 2018-03-05 20:56:26 +08:00
huangyuhui
eb1a109afc Fix IllegalArgumentException: Folder parameter must be a valid folder 2018-03-05 20:36:38 +08:00
huangyuhui
a03e3fea12 Logs stopApplication stack trace 2018-03-05 20:23:23 +08:00
huangyuhui
db08b61cfa Fix #301 2018-03-05 19:02:13 +08:00
huangyuhui
41d313baff Fix #303 2018-03-04 23:35:42 +08:00
huangyuhui
affe36a568 Fix update again 2018-03-04 23:29:27 +08:00
huangyuhui
9ba6cddde7 Fix update 2018-03-04 19:09:11 +08:00
huangyuhui
5b5a58a867 Fixed not terminating the process when closed window 2018-03-03 22:56:42 +08:00
huangyuhui
c6ab7878e7 Optimize code 2018-03-02 23:42:38 +08:00
huangyuhui
ba359305f6 Hide refresh and add button in MainPage 2018-03-02 19:22:10 +08:00
huangyuhui
eba0990538 Collect log when launcher crashed 2018-03-01 01:02:05 +08:00
huangyuhui
1bcef2bab0 Added event logs. Cloese #244 2018-03-01 00:27:07 +08:00
huangyuhui
f83777e1d2 Terminate when exclaimation mark is in the path 2018-02-28 23:34:31 +08:00
andylizi
76c254ee98 Switch the download links to HTTPS 2018-02-28 17:23:49 +08:00
huangyuhui
494b27cc22 May fix RemoteVersion not found exception 2018-02-27 23:05:05 +08:00
huangyuhui
655e5ca7e0 Fixed missed encoding in Log4jHandler 2018-02-27 11:13:07 +08:00
huangyuhui
1404a080ad library download optimization 2018-02-26 19:56:06 +08:00
huangyuhui
cbb2a1b575 Unique duplicated libraries in minecraft json file 2018-02-26 11:21:34 +08:00
huangyuhui
30b276ec1a Forge xz library supported 2018-02-26 11:14:53 +08:00
huangyuhui
13a24d5b00 try to fix RejectedExecutionException 2018-02-25 11:10:31 +08:00
huangyuhui
40360cf18a Fixed installing game 2018-02-25 10:59:48 +08:00
huangyuhui
139e2ee78d try fix ConcurrentModificationException 2018-02-25 10:48:07 +08:00
huanghongxun
9ff2442789 Foreground text fill auto detected 2018-02-23 17:40:32 +08:00
huanghongxun
b11e4ab1db Fixed font in dialog accept and cancel button. Closes #291 2018-02-23 14:53:08 +08:00
huanghongxun
a52cc8c093 Fixed crash when launching 1.7.10 forge version 2018-02-23 11:36:44 +08:00
huanghongxun
506c409303 log4jHandler maintainence 2018-02-23 11:22:20 +08:00
huanghongxun
53a8446f4a Curse CDN download provider 2018-02-23 09:54:57 +08:00
huanghongxun
0f7b5299e9 Fixed incorrect format of userProperties. Closes #286 2018-02-22 15:46:48 +08:00
huanghongxun
7a788d1e6e cleanup 2018-02-22 15:02:12 +08:00
huanghongxun
6c4231a6b2 authentication reconstruction 2018-02-22 14:12:55 +08:00
huanghongxun
6e202341ad clean up 2018-02-20 18:03:34 +08:00
huanghongxun
95a509b86c ToStringBuilder 2018-02-20 12:11:31 +08:00
huanghongxun
e5ccc40358 clear cached skin records when refrshing account state 2018-02-18 18:35:05 +08:00
huanghongxun
9ae952bb78 Add comments 2018-02-18 18:26:01 +08:00
huanghongxun
57a7eaccf5 Optimize imports 2018-02-18 17:16:42 +08:00
huanghongxun
1934bfa962
Merge pull request #282 from yushijinhun/javafx
重构
2018-02-18 17:12:16 +08:00
yushijinhun
b45907a9f6
Polish, 处理部分警告 2018-02-18 16:23:12 +08:00
yushijinhun
8fd9395e23
删除对SSL的干涉(出于安全考虑) 2018-02-18 16:03:13 +08:00
yushijinhun
126b2a19e7
ReflectionHelper中使用参数化类型 2018-02-18 16:01:21 +08:00
yushijinhun
bde01af89d
help compilers to infer types
ecc cannot infer it
2018-02-18 15:49:11 +08:00
yushijinhun
65491ef18e
Remove 3-arg Lang.merge() 2018-02-18 15:44:32 +08:00
huanghongxun
44a9470613 Fixed same skin among characters in one account 2018-02-18 15:42:18 +08:00
yushijinhun
470045f228
Rename Lang.getOrPut() to computeIfAbsent()
See Map.computeIfAbsent() in java9
2018-02-18 15:33:58 +08:00
yushijinhun
d081a6ee92
Remove Lang.requireJsonNonNull(), use JsonUtils.fromNonNullJson() instead 2018-02-18 15:32:00 +08:00
yushijinhun
95f404bb64
move emptyConsumer() to Constants 2018-02-18 15:20:00 +08:00
yushijinhun
dcea76bcd3
Add missing @SafeVarargs in Lang 2018-02-18 15:17:17 +08:00
yushijinhun
e9b816fb87
Change Lang.EMPTY_CONSUMER to emptyConsumer() 2018-02-18 15:15:28 +08:00
huanghongxun
20a7039f59 GC after game launched 2018-02-18 13:54:13 +08:00