[FIX][EXPERIMENTAL] Игнорирование исключний загрузки HashedStoreEntry

This commit is contained in:
Gravit 2019-05-20 07:09:39 +07:00
parent 69aef41e5d
commit 00b6e4400c
3 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,7 @@
import ru.gravit.launcher.serialize.HInput; import ru.gravit.launcher.serialize.HInput;
import ru.gravit.launcher.serialize.HOutput; import ru.gravit.launcher.serialize.HOutput;
import ru.gravit.utils.helper.IOHelper; import ru.gravit.utils.helper.IOHelper;
import ru.gravit.utils.helper.LogHelper;
import java.io.IOException; import java.io.IOException;
import java.lang.reflect.Type; import java.lang.reflect.Type;
@ -24,6 +25,9 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
String fullPath = input.readString(1024); String fullPath = input.readString(1024);
HashedDir dir = new HashedDir(input); HashedDir dir = new HashedDir(input);
settings.lastHDirs.add(new NewLauncherSettings.HashedStoreEntry(dir, dirName, fullPath)); settings.lastHDirs.add(new NewLauncherSettings.HashedStoreEntry(dir, dirName, fullPath));
} catch (IOException e)
{
LogHelper.error("Skip file %s exception: %s", file.toAbsolutePath().toString(), e.getMessage());
} }
return super.visitFile(file, attrs); return super.visitFile(file, attrs);
} }

2
Radon

@ -1 +1 @@
Subproject commit 60fa1c6694b570dda50056b1e2fe18fcdb0f8be0 Subproject commit 6410af8044e7346e06f546dc04636b631fa7584c

@ -1 +1 @@
Subproject commit b599517693c9d1c9a9045982ffa8068e1ed620c4 Subproject commit 3f7cf22f4270dcdf6baa5c74dd00673b2b4ffc9e