Commit Graph

556 Commits

Author SHA1 Message Date
huanghongxun
27a33f567f add missing setCacheDirectory directives 2019-08-15 12:45:31 +08:00
huanghongxun
e862a4b46b Fix #592 2019-07-28 20:16:12 +08:00
huanghongxun
2b3e8ebfc0 Merge branch 'javafx' of https://github.com/huanghongxun/HMCL into javafx 2019-07-28 20:05:18 +08:00
asl97
0454ff9bf7 Fix #586 2019-07-27 01:21:11 +08:00
huanghongxun
a7c02e2dea name task async 2019-05-13 00:05:08 +08:00
huanghongxun
cfb9610afc Merge branch 'task-refactor' into javafx
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/LeftPaneController.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AccountListItemSkin.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/InstallerListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/WorldListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateHandler.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/download/DefaultDependencyManager.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/download/DefaultGameBuilder.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/download/MaintainTask.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/download/forge/ForgeInstallTask.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/download/optifine/OptiFineInstallTask.java
2019-05-10 10:33:06 +08:00
huanghongxun
300efb99d2 Fix #540 2019-05-09 00:49:10 +08:00
yushijinhun
6fb3610bcc
Refresh skins on startup
Mentioned in #539
2019-05-02 12:40:46 +08:00
yushijinhun
43fb3ca10a
Fix illegal texturePayload may cause crash 2019-05-02 12:35:43 +08:00
yushijinhun
adc360eaaa
Fix #548 2019-05-02 00:12:33 +08:00
huanghongxun
5e659352d7 Support install Forge/OptiFine from local file 2019-04-30 20:26:31 +08:00
huanghongxun
ea19e6efd8 Add Fabric installerItem in list page 2019-04-29 17:57:04 +08:00
huanghongxun
55d38f2b36 Fix importing fabric multimc instance 2019-04-28 14:18:04 +08:00
huanghongxun
e0abf3e0c1 Support fabric detection 2019-04-28 14:17:28 +08:00
huanghongxun
1956ba7a73 Force refreshing version list when remove version from disk 2019-04-25 13:39:07 +08:00
huanghongxun
c209617ee7 Try to fix ConcurrentModificationException 2019-04-25 13:38:44 +08:00
huanghongxun
b198eea9e4 Friendly prompt if response code is not OK 2019-04-03 14:05:14 +08:00
huanghongxun
3f4364c67c Fix cannot launch a game multiple times 2019-03-24 12:14:13 +08:00
huanghongxun
23e2df5e58 Unzip natives to /versions/ reducing trashes in temp 2019-03-21 11:08:00 +08:00
huanghongxun
3d008dcab5 Make DatapackListPage multiple-selectable 2019-03-19 10:31:02 +08:00
huanghongxun
2dce675fe2 Ignore all color formatting in world name. 2019-03-18 23:24:50 +08:00
huanghongxun
f866f692e2 Hide ForgeNew/OldInstallTask 2019-03-18 20:17:03 +08:00
huanghongxun
1eb4b1ca9e Fix unable to delete the version which failed to download 2019-03-05 19:37:37 +08:00
huanghongxun
bf37db2cbe Fix #538 2019-03-05 19:32:24 +08:00
huanghongxun
5b30617a6b Forbid user from installing both Forge 1.13 and OptiFine simultaneously 2019-03-04 12:27:09 +08:00
huanghongxun
266c686a3a Fix forge 1.13 installation 2019-03-04 11:39:30 +08:00
huanghongxun
32d0d6a7ee Add some task test 2019-02-26 15:28:40 +08:00
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