Commit Graph

779 Commits

Author SHA1 Message Date
huanghongxun
d9a336e50b Remove redundant codes 2019-02-26 13:29:09 +08:00
huanghongxun
3c958d06c8 Replace scheduler to executor 2019-02-26 11:39:38 +08:00
huanghongxun
15a75a69b3 Fix exception handling 2019-02-26 08:17:46 +08:00
huanghongxun
cae32cff4c remove isDependentSucceeded in whenComplete 2019-02-25 23:59:21 +08:00
huanghongxun
eeef76594f Rename task.lastException -> task.exception 2019-02-25 22:17:30 +08:00
huanghongxun
8f2a1030bc Refactor Task 2019-02-24 23:27:53 +08:00
huanghongxun
def45cc3e4 Fix NumberFormatException when parsing forge version list json 2019-02-24 23:11:09 +08:00
huanghongxun
8007f1958e Rename isDependentsSucceeded to isDependentSucceeded 2019-02-24 17:00:17 +08:00
huanghongxun
b22e724a3f Remove SilentException 2019-02-24 12:39:40 +08:00
huanghongxun
ed66b016db Rename then-series functions 2019-02-24 12:39:39 +08:00
yushijinhun
9f85e4a63b
Do not run GameVersion.minecraftVersion on UI thread 2019-02-24 12:25:19 +08:00
yushijinhun
7fcd4d94a6
Merge branch 'javafx' of github.com:huanghongxun/HMCL into javafx 2019-02-23 23:52:26 +08:00
yushijinhun
84fbca7905
Remove unused code 2019-02-23 23:48:23 +08:00
huanghongxun
9add2387b9 Add comments to FileUtils and IOUtils 2019-02-23 23:42:05 +08:00
huanghongxun
a388450f94 Remove AutoTypingMap 2019-02-23 22:50:01 +08:00
huanghongxun
fff7abc2ac finalized no longer passes AutoTypingMap as callback parameter 2019-02-23 22:50:00 +08:00
yushijinhun
7c89fac1e9
Rename MultiStepBinding->BindingMapping 2019-02-23 22:14:29 +08:00
yushijinhun
bc9a9ffb72
rewrite MultiStepBinding.asyncMap 2019-02-23 21:58:44 +08:00
yushijinhun
1bf2f17538
Fix #533 2019-02-23 18:38:43 +08:00
huanghongxun
608a531655 Remove AtomicReference 2019-02-20 20:18:34 +08:00
huanghongxun
e57180eb15 remove lastException in task.variables 2019-02-20 20:07:43 +08:00
huanghongxun
3ae826d9ca Fix task.getLastException does not receive subtasks' value 2019-02-20 20:07:11 +08:00
huanghongxun
e940845c60 Fix not correct mod installation 2019-02-20 16:40:26 +08:00
huanghongxun
d8aa989cc4 Fix #532 2019-02-19 23:15:45 +08:00
huanghongxun
a3dc7798e7 fetch Forge remote version list only from BMCLAPI 2019-02-17 14:01:05 +08:00
huanghongxun
9062c2e447 Display more friendly error message when fail to install library 2019-02-17 13:45:10 +08:00
huanghongxun
c2d609cdb4 Use TableView in ModListPage to allow multiple selection 2019-02-15 19:39:43 +08:00
yushijinhun
758216245f
Add missing license headers 2019-02-13 20:05:01 +08:00
huanghongxun
9ced29aa93 Display furnace image as default for modded 1.13 game 2019-02-11 19:53:55 +08:00
huanghongxun
c889d7cb3f Download missing game jar when launching 2019-02-11 19:36:19 +08:00
huanghongxun
84636f3f50 Merge branch 'javafx' of https://github.com/huanghongxun/HMCL into javafx 2019-02-10 10:51:39 +08:00
huanghongxun
9a6f07d7c9 make DefaultGameRepositoy.readVersionJson nonnull. 2019-02-10 10:51:04 +08:00
huanghongxun
e8f5088049 Support automatic installation of Forge 1.13. 2019-02-10 10:49:48 +08:00
yushijinhun
507cade50d
polish authlib-injector 2019-02-08 17:08:23 +08:00
huanghongxun
f0c7f54cc6 Redownload asset index when install new game 2019-02-08 15:54:28 +08:00
yushijinhun
62c38482f6
polish 639bc58e84
see 639bc58e84 (r32215378)
2019-02-08 14:55:58 +08:00
yushijinhun
0ff6ca18ed
Use https for bmclapi 2019-02-08 14:35:16 +08:00
huanghongxun
bbe6c388a3 Merge branch 'skin-refactor' into javafx 2019-02-06 22:53:38 +08:00
huanghongxun
639bc58e84 Support version identification of Minecraft 1.14 2019-02-06 21:54:51 +08:00
huanghongxun
c0bcafd747 Revert "Use JFXListView in place of custom components to accelerate rendering"
This reverts commit 0813211
2019-02-06 17:14:49 +08:00
huanghongxun
bcaa019551 Only maintain game version json with launchwrapper installed.
Forge modlauncher is not supported right now.
2019-02-06 15:14:08 +08:00
huanghongxun
38725abc48 DownloadInfo.url can be null in forge 1.13.2 version json 2019-02-06 13:35:16 +08:00
yushijinhun
68a02966d0
Skip parsing json file if it does not exist 2019-02-05 14:31:33 +08:00
yushijinhun
5ea63273be
check validity of YggdrasilSession response 2019-02-05 01:46:48 +08:00
yushijinhun
9298f5e030
Account Refactor 2019-02-04 23:12:40 +08:00
Feng Chang
f20c11a4e2 Ensure sequential execution of configuration writer threads (#516)
* Ensure sequential execution of configuration writer threads

Signed-off-by: Chang Feng <chang_196700@hotmail.com>

* Change method to add synchronized to action

Signed-off-by: Chang Feng <chang_196700@hotmail.com>
2019-02-04 02:18:24 +08:00
yushijinhun
8d774e267f
Show register link in login dialog
https://github.com/yushijinhun/authlib-injector/issues/25
2019-01-26 15:19:17 +08:00
huanghongxun
28d002f6d3 Do not schedule task if preExecute and postExecute are not overrided. 2019-01-22 16:46:11 +08:00
huanghongxun
cdfae54ab9 Fixed costly time consumption reading level.dat. Mentioned in #512 2019-01-22 16:11:31 +08:00
huanghongxun
0813211c20 Use JFXListView in place of custom components to accelerate rendering 2019-01-22 16:01:00 +08:00
huanghongxun
056a4eead2 Add comments to LiteLoaderInstallTask and OptiFineInstallTask 2019-01-22 15:54:59 +08:00
huanghongxun
2635d31425 Fix not correctly adding "--tweakClass" for MultiMC modpack 2019-01-22 15:52:57 +08:00
huanghongxun
76d35af5b9 MultiMC modpack patch json file may have "+libraries" or "libraries" 2019-01-22 15:51:52 +08:00
huanghongxun
bcff1695d3 Refactor MaintainTask 2019-01-22 15:50:49 +08:00
huanghongxun
3d04447c2f Load world asynchronously 2019-01-22 14:59:01 +08:00
huanghongxun
2736b88a10 Add some promise-like method to TaskResult 2019-01-22 14:58:00 +08:00
huanghongxun
0804a2fbf8 Merge TaskCallable and TaskCallable2 2019-01-22 14:56:48 +08:00
huanghongxun
7224ed6a7d Fix missorting optifine versions 2019-01-16 12:34:13 +08:00
huanghongxun
c41737364c Prevent from potential conflict that a MultiMC modpack has ".minecraft" and "minecraft" at the same time 2019-01-13 17:10:23 +08:00
huanghongxun
fc3f2e045b Retry fetching remote text file when downloading had been terminated 2019-01-13 16:50:54 +08:00
huanghongxun
481b47bf10 Fix #508. MultiMC stores files in ".minecraft" instead 2019-01-13 16:50:21 +08:00
huanghongxun
718a98d7ec Fix alerting Forge conflicts with LiteLoader but actually not 2019-01-11 21:17:02 +08:00
huanghongxun
fb3ba220b6 Fix redownloading disabled mods for curse modpack 2019-01-09 13:18:04 +08:00
yushijinhun
d655c9ec6b
Use /* instead of /** for license header
see: https://github.com/mycila/license-maven-plugin/issues/118
2019-01-05 19:04:24 +08:00
yushijinhun
8a67f33cf6
Update license year to 2019 2019-01-05 18:50:16 +08:00
huanghongxun
778f26d55f Support manually created world pack 2018-12-21 00:34:46 +08:00
huanghongxun
fab5bdc2e1 Auto detect world and datapack's encoding 2018-12-20 20:27:32 +08:00
huanghongxun
1ca9d0fa2c Backup when updating modpack 2018-12-18 13:08:02 +08:00
huanghongxun
a015585bd1 Let TaskExecutorDialogPane close itself when finished 2018-12-18 12:35:03 +08:00
huanghongxun
bc34427793 Add doDependenciesSucceeded in Task 2018-12-18 00:26:31 +08:00
huanghongxun
0fe867cd93 Fixed #499 2018-12-17 23:31:47 +08:00
yushijinhun
9f060be3fd
Fix #502
* Check if port is valid before setting it
* Validate user input
* Change proxyPort to int
2018-12-16 15:49:57 +08:00
huanghongxun
f5ffa875b8 Auto detect encoding of compressed packs 2018-12-13 00:42:52 +08:00
huanghongxun
2cb23cbfcb Log messages at finer and finest level 2018-12-11 15:47:12 +08:00
yushijinhun
672b6054a6
Format license headers 2018-12-08 21:13:03 +08:00
yushijinhun
cf28b27d50
Remove HMCLCore usage instructions 2018-12-08 19:14:56 +08:00
huanghongxun
b78f9c8cd5 Merge branch 'javafx' of https://github.com/huanghongxun/HMCL into javafx 2018-12-02 20:03:15 +08:00
huanghongxun
91bd67dc26 Restore default cache directory if needed. Closes #489 2018-12-02 20:02:22 +08:00
yushijinhun
900f483a03
Fix #493 2018-12-02 14:57:37 +08:00
yushijinhun
4d7af2e68b
Fix #492
Related: 4d73187376
2018-12-02 14:54:58 +08:00
huanghongxun
ef6cfa785f Query cursemeta for removed mods 2018-11-26 00:40:53 +08:00
huanghongxun
9c7795687f Show installation succeeded when Curse modpack not finished completion 2018-11-26 00:40:49 +08:00
yushijinhun
b273c80a02
Add AuthlibInjectorAccount.toString() 2018-11-24 20:43:41 +08:00
yushijinhun
8cdab4710b
Add response text to exception message when authlib-injector meta is malformed 2018-11-24 20:33:46 +08:00
yushijinhun
ea5b31d537
Allow specifying authlib-injector path 2018-11-24 20:32:22 +08:00
yushijinhun
37186439cb
Fetch authlib-injector metadata on startup 2018-11-23 23:29:41 +08:00
yushijinhun
34b7e1d582
Support use authlib-injector offline 2018-11-23 22:01:52 +08:00
yushijinhun
4d73187376
Use @JsonAdapter 2018-11-23 21:49:50 +08:00
yushijinhun
dcd0a42705
Refactor AuthlibInjectorServer 2018-11-23 21:34:54 +08:00
yushijinhun
1b40916046
Rewrite config properties 2018-11-23 21:16:05 +08:00
yushijinhun
a4e4782f2f
Change type from ExceptionalSupplier to AuthlibInjectorDownloader 2018-11-23 17:47:51 +08:00
huanghongxun
44ac3bc900 Fix messy name of installed modpack game 2018-11-06 22:03:43 +08:00
huanghongxun
e79a95b885 Fix NPE when version json missing "libraries" 2018-10-23 13:42:16 +08:00
yushijinhun
f8a838506d
Replace 'Open logs folder' with 'Export logs'
Related: 8905f2e855
2018-10-20 17:52:06 +08:00
yushijinhun
c9466cf8ef
Move MINECRAFT_DIRECTORY & HMCL_DIRECTORY to Metadata 2018-10-20 17:43:35 +08:00
huanghongxun
6c74364fa5 Fix writeText 2018-10-15 22:27:26 +08:00
huanghongxun
cf70f72f9c Fix #471 2018-10-14 19:04:27 +08:00
huanghongxun
16ea88a659 Fixed failing to download file when cached entry was removed by user 2018-10-14 19:04:21 +08:00
huanghongxun
5918b04b48 Prevent from calling register and fireEvent at the same time 2018-10-13 11:17:16 +08:00
huanghongxun
b8bd0a08e0 Merge branch 'javafx' of https://github.com/huanghongxun/HMCL into javafx 2018-10-11 14:05:35 +08:00
huanghongxun
fb31eebcf2 Add a warning that forge 2760 is not compatible with liteloader 2018-10-11 14:04:52 +08:00
huanghongxun
b12711969c Rewrite encode location 2018-10-10 16:37:04 +08:00
huanghongxun
94727353c4 Fix response code 400 when downloading mods from curse 2018-10-10 15:27:27 +08:00
huanghongxun
5eb7449b74 Delete old files if etag was updated 2018-10-10 01:36:31 +08:00
huanghongxun
07a701e572 Cache asset indexes by ETag cache 2018-10-09 20:22:54 +08:00
huanghongxun
5323aaed6d ETag caching 2018-10-09 20:16:16 +08:00
huanghongxun
daf659373f Removed static login method 2018-10-08 21:23:01 +08:00
huanghongxun
f1d97454c2 Merge branch 'javafx' of https://github.com/huanghongxun/HMCL into javafx 2018-10-06 12:42:50 +08:00
huanghongxun
ffb6a45e28 Remove toLowerCase 2018-10-06 12:42:30 +08:00
huanghongxun
f0d1c9b361
Merge pull request #468 from yushijinhun/authlib-injector-ali
支持 authlib-injector API 地址指示
2018-10-06 12:38:04 +08:00
huanghongxun
749ecfe37f Fix #467 2018-10-06 12:20:42 +08:00
yushijinhun
c51da28e31
Add error message for authlib-injector download failure 2018-10-06 12:06:31 +08:00
yushijinhun
f3dca75a10
Do not check for update of authlib-injector each time 2018-10-06 11:56:02 +08:00
yushijinhun
c3dcb0292c
Support -Dauthlibinjector.side=client argument
See yushijinhun/authlib-injector#16
2018-10-06 11:38:55 +08:00
yushijinhun
2a42ecda78
Support authlib-injector ALI
See yushijinhun/authlib-injector#18
2018-10-06 00:47:36 +08:00
yushijinhun
4121921aca
Fix compile errors 2018-10-03 19:20:47 +08:00
yushijinhun
2f522b744f
Add MappedProperty & reservedSelectedPropertyFor(CheckBox) 2018-10-03 17:09:12 +08:00
yushijinhun
5f9490d780
Add SafeStringConverter & Refactor font settings 2018-10-03 16:38:21 +08:00
yushijinhun
2c7ca6d354
Remove some methods in Lang 2018-10-02 22:01:42 +08:00
yushijinhun
e21f315239
Fix VersionNumber.equals() and hashCode() may not be consistent 2018-10-02 21:25:29 +08:00
huanghongxun
8e1e13058b Fix #463 2018-10-02 18:33:48 +08:00
huanghongxun
c8f74ee8e3 Add test game in game list page 2018-10-02 11:47:53 +08:00
yushijinhun
7da5b8fbc8
Add AutomatedToggleGroup & Refactor AccountList 2018-10-01 20:39:00 +08:00
yushijinhun
83f7e61d37
Add selectedItemPropertyFor(ToggleGroup) 2018-10-01 20:03:57 +08:00
yushijinhun
86765275c8
Make SelectionModelSelectedItemProperty a util class 2018-10-01 15:38:12 +08:00
yushijinhun
a01e15d841
Add MultiStepBinding&ReadWriteComposedProperty 2018-10-01 15:35:39 +08:00
yushijinhun
684813e131
Refactor Java lookup 2018-09-30 19:18:29 +08:00
huanghongxun
76ef47efc4 Suppress exceptions thrown when checking Java installation 2018-09-30 13:22:42 +08:00
huanghongxun
48d98b2424 Conceal NPE 2018-09-26 19:07:09 +08:00
huanghongxun
518969d2f2 Fix JsonParseException 2018-09-26 13:13:21 +08:00
huanghongxun
01ff1327f7 Make head displayed more precisely 2018-09-25 12:30:21 +08:00
huanghongxun
1611d11544 Fix crash when yggdrasil server gives response with malformed UUID 2018-09-24 17:24:13 +08:00
yushijinhun
4a0831a155
Replace Properties with InvocationDispatcher & Make config saving async 2018-09-22 14:21:17 +08:00
yushijinhun
fa38c53915
Remove Constants.SYSTEM_CHARSET 2018-09-22 12:54:15 +08:00
yushijinhun
9b69fe8c56
Remove Constants.DEFAULT_ICON 2018-09-22 12:52:30 +08:00
yushijinhun
ed91771594
Remove truePredicate/falsePredicate/emptyConsumer 2018-09-22 12:39:57 +08:00
yushijinhun
b33e014f71
Move GSON const to JsonUtils 2018-09-22 12:37:03 +08:00
yushijinhun
19632ac162
Move JsonUtils->gson, JarUtils->io, Properties->javafx 2018-09-22 12:33:18 +08:00
yushijinhun
74e3a9e2d1
Use http.agent to set useragent 2018-09-22 12:30:33 +08:00
yushijinhun
b15291dc57
Refactor util package structure 2018-09-22 12:12:06 +08:00
huanghongxun
8b52c46664 Merge resources.zip to allow multiple datapack zip containing resources.zip 2018-09-20 00:12:41 +08:00
huanghongxun
aa8c386cdd Support zip file in datapacks folder 2018-09-19 23:02:27 +08:00
huanghongxun
d426952d47 Fix Minecraft jar does not exist when renaming a version 2018-09-19 00:12:44 +08:00
huanghongxun
67b6a60382 Fix bugs with world. 2018-09-17 16:30:27 +08:00
huanghongxun
9752dea0e1
Merge pull request #454 from yushijinhun/javafx
重构
2018-09-16 13:46:31 +08:00
huanghongxun
9afdc99157 Support single datapack zip 2018-09-16 13:15:54 +08:00
huanghongxun
07febc18d4 World and datapacks management 2018-09-16 12:38:15 +08:00
yushijinhun
68fdfb36fd
Add selectedItemPropertyFor(ComboBox) 2018-09-16 00:52:03 +08:00
yushijinhun
9950bef260
Change type of downloadType to string 2018-09-15 23:05:37 +08:00
Yuhui Huang
1753b4d27e Datapack resolving 2018-09-14 15:44:40 +08:00
huangyuhui
c679667079 Fix crash when the game version is too long 2018-09-09 18:24:05 +08:00
huangyuhui
387beb8484 Fix not saving profile configurations 2018-09-08 01:03:36 +08:00
huanghongxun
daa1a38a63 Refactor ModListPage and InstallerListPage 2018-09-08 00:36:57 +08:00
huangyuhui
ce9d882c9f Add total progress of task execution 2018-09-07 15:12:41 +08:00
huanghongxun
84c18c8693 Move cache repository to HMCLCore 2018-09-07 11:27:14 +08:00
huangyuhui
60143d5299 Refactor FileDownloadTask 2018-09-07 00:35:28 +08:00
huangyuhui
1019c891e2 Cache asset files 2018-09-06 17:47:44 +08:00
huangyuhui
1392ad413a Only cache verified files and copy cached files to current directory 2018-09-06 00:13:16 +08:00
huangyuhui
94a71dc88f Fix unclosing file 2018-09-05 22:17:58 +08:00
huangyuhui
d8cb93c36a Add Task.preExecute and Task.postExecute 2018-09-05 20:38:00 +08:00
huangyuhui
d01c9a425a Fix crash when removed all profiles 2018-09-03 18:38:40 +08:00
huangyuhui
16ee0a040a optimize import 2018-09-03 00:25:56 +08:00
huangyuhui
5c5f091769 Fails game installing when unable to download game jar 2018-09-01 23:41:13 +08:00
huangyuhui
cf6485aea8 Make exception message more understandable in FileDownloadTask 2018-09-01 23:38:32 +08:00
huangyuhui
531fd87ff3 Profiles 2018-09-01 00:19:25 +08:00
huangyuhui
93cabde9f4 clean up HMCLCore 2018-08-30 22:20:18 +08:00
huangyuhui
1566e069ed Add selectedMinecraftVersion 2018-08-30 22:09:05 +08:00
huangyuhui
7c77c317df Improve finalizedTask log 2018-08-29 00:03:50 +08:00
huangyuhui
9a375fd0d1 Add hiding versions. Closes #437 2018-08-26 11:50:42 +08:00
huangyuhui
6ca4aeb5a2 Support 1.13 auto-installing 2018-08-26 11:48:27 +08:00
huangyuhui
a4578405cf Remove RandomUserAgent 2018-08-25 19:39:00 +08:00
huangyuhui
4146ceb048 Fix not downloading the correct game version 2018-08-22 04:25:35 +08:00
huangyuhui
ad568d2b9f Fix #429 2018-08-22 02:08:49 +08:00
huangyuhui
c7bfb9a11d Suggest user to install latest Java 8 to avoid potentional game crashing 2018-08-21 21:12:05 +08:00
huangyuhui
c9391181bd Display empty message when loading 1.13 forge version list 2018-08-21 19:31:04 +08:00
huangyuhui
b08eb519bf Remove logging support which is meaningless 2018-08-21 11:48:19 +08:00
huangyuhui
47c4fc2f7e Fix #426 2018-08-20 11:53:02 +08:00
huangyuhui
dfd177433a Fix not replacing tokens metioned in #426 2018-08-20 11:38:06 +08:00
yushijinhun
1c7827c53c
Deprecate and partially remove ImmediateProperty 2018-08-19 15:55:18 +08:00
huangyuhui
33d1f1d692 Not showing 'unknown' in mod info 2018-08-19 12:19:11 +08:00
huangyuhui
c6b49545ff Fix #424 2018-08-19 12:13:39 +08:00
huangyuhui
a4a833bfdb Fix auto-installing: missing checksums in game json 2018-08-19 11:58:02 +08:00
huangyuhui
2e1b6e4630 Fix not correctly loading remote game version list 2018-08-19 11:56:39 +08:00
huangyuhui
6911cfa387 try to move deleting version to trash 2018-08-19 11:34:07 +08:00
huangyuhui
0f4e6a01bc Fix unable to install more than one libraries 2018-08-19 01:18:57 +08:00
huangyuhui
1d3d8d6710 Show OptiFine versions in dividually 2018-08-19 00:39:47 +08:00
huangyuhui
005e06c56f Always download Optifine from BMCLAPI 2018-08-19 00:35:37 +08:00
huangyuhui
82916a04ea Check if forge libraries' checksums are valid 2018-08-18 22:25:13 +08:00
huangyuhui
ba2e419894 Fix #422 2018-08-18 22:09:16 +08:00
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
huanghongxun
4ad172dda4 authlib-injector prefetch support 2018-02-18 09:39:56 +08:00
huanghongxun
adf6c19996 Cache session profile response. Closes #280 2018-02-17 23:38:40 +08:00
huanghongxun
24ec0adacf Authlib Injector support 2018-02-17 23:28:05 +08:00
huanghongxun
83bc6748a3 HMCLCore authlib injector support 2018-02-17 11:01:08 +08:00
huangyuhui
8bd4f2b5b5 hmcl.log in normal format 2018-02-14 23:42:08 +08:00
huangyuhui
552238676c Fixed activation of mods not working. Closes #259 2018-02-14 15:16:42 +08:00
huangyuhui
c9e7bf7ca5 Yggdrasil account offline logging in 2018-02-14 14:51:42 +08:00
huangyuhui
8d1e335abf Downloading snapshot versions 2018-02-14 14:15:34 +08:00
huangyuhui
c76bcb5d15 show retry link when failed to fetch version list 2018-02-14 13:29:08 +08:00
huangyuhui
0fb248e6be theme selection 2018-02-14 00:15:27 +08:00
huangyuhui
69ea41056d background customizing 2018-02-13 18:37:33 +08:00