mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
Открыта возможность инструментации LaunchServer
This commit is contained in:
parent
df5d3e8020
commit
f5534a1f67
1 changed files with 8 additions and 0 deletions
|
@ -28,8 +28,16 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
|
||||||
return super.visitFile(file, attrs);
|
return super.visitFile(file, attrs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static Instrumentation inst;
|
||||||
|
private static boolean isStarted = false;
|
||||||
|
public static boolean isAgentStarted()
|
||||||
|
{
|
||||||
|
return isStarted;
|
||||||
|
}
|
||||||
|
|
||||||
public static void premain(String agentArgument, Instrumentation inst) {
|
public static void premain(String agentArgument, Instrumentation inst) {
|
||||||
|
StarterAgent.inst = inst;
|
||||||
|
isStarted = true;
|
||||||
try {
|
try {
|
||||||
Files.walkFileTree(Paths.get("libraries"), Collections.singleton(FileVisitOption.FOLLOW_LINKS), Integer.MAX_VALUE, new StarterVisitor(inst));
|
Files.walkFileTree(Paths.get("libraries"), Collections.singleton(FileVisitOption.FOLLOW_LINKS), Integer.MAX_VALUE, new StarterVisitor(inst));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in a new issue