mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] getter для UpdateRequest.dir
This commit is contained in:
parent
00b6e4400c
commit
4371369dba
3 changed files with 9 additions and 2 deletions
|
@ -75,7 +75,7 @@ public void postDiff(UpdateRequest request, UpdateRequestEvent e, HashedDir.Diff
|
||||||
//Возможно эта проверка избыточна
|
//Возможно эта проверка избыточна
|
||||||
if(file.isSame(ret, true))
|
if(file.isSame(ret, true))
|
||||||
{
|
{
|
||||||
Path source = request.dir.resolve(path).resolve(name);
|
Path source = request.getDir().resolve(path).resolve(name);
|
||||||
LogHelper.debug("Copy file %s to %s", source.toAbsolutePath().toString(), ret.toAbsolutePath().toString());
|
LogHelper.debug("Copy file %s to %s", source.toAbsolutePath().toString(), ret.toAbsolutePath().toString());
|
||||||
//Let's go!
|
//Let's go!
|
||||||
Files.copy(ret, source);
|
Files.copy(ret, source);
|
||||||
|
|
|
@ -29,7 +29,9 @@ public void invoke(String... args) throws Exception {
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
LogHelper.info("Features: [store]");
|
LogHelper.info("Features: [store]");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
LogHelper.info("Feature %s %s", args[0], enabled ? "enabled" : "disabled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -228,7 +228,12 @@ public UpdateRequestEvent requestDo(StandartClientWebSocketService service) thro
|
||||||
// Instance
|
// Instance
|
||||||
@LauncherNetworkAPI
|
@LauncherNetworkAPI
|
||||||
private final String dirName;
|
private final String dirName;
|
||||||
public transient final Path dir;
|
private transient final Path dir;
|
||||||
|
|
||||||
|
public Path getDir() {
|
||||||
|
return dir;
|
||||||
|
}
|
||||||
|
|
||||||
private transient final FileNameMatcher matcher;
|
private transient final FileNameMatcher matcher;
|
||||||
|
|
||||||
private transient final boolean digest;
|
private transient final boolean digest;
|
||||||
|
|
Loading…
Reference in a new issue