mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-06-28 03:58:07 +03:00
[FIX] Try fix create assets directory
This commit is contained in:
parent
324de7226d
commit
38dcc1a53e
1 changed files with 9 additions and 0 deletions
|
@ -106,6 +106,15 @@ public CompletedProfile pushUpdate(UncompletedProfile profile, String tag, Clien
|
||||||
LocalProfile localProfile = (LocalProfile) profile;
|
LocalProfile localProfile = (LocalProfile) profile;
|
||||||
localProfile = new LocalProfile(clientProfile, localProfile.clientDir, localProfile.assetDir);
|
localProfile = new LocalProfile(clientProfile, localProfile.clientDir, localProfile.assetDir);
|
||||||
localProfile.profile = clientProfile;
|
localProfile.profile = clientProfile;
|
||||||
|
if(flags.contains(UpdateFlag.USE_DEFAULT_ASSETS)) {
|
||||||
|
if(getUpdatesDir("assets") == null) {
|
||||||
|
Path assetDirPath = updatesDirPath.resolve("assets");
|
||||||
|
if(!Files.exists(assetDirPath)) {
|
||||||
|
Files.createDirectories(assetDirPath);
|
||||||
|
}
|
||||||
|
updatesDirMap.put("assets", new HashedDir(assetDirPath, null, true, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
if(assetActions != null && !assetActions.isEmpty()) {
|
if(assetActions != null && !assetActions.isEmpty()) {
|
||||||
Path assetDir = updatesDirPath.resolve(clientProfile.getAssetDir());
|
Path assetDir = updatesDirPath.resolve(clientProfile.getAssetDir());
|
||||||
execute(localProfile.assetDir, assetDir, assetActions);
|
execute(localProfile.assetDir, assetDir, assetActions);
|
||||||
|
|
Loading…
Reference in a new issue