Started POC for External Decompiler Processes

This commit is contained in:
Konloch 2024-10-02 18:13:37 -06:00
parent 1d5d0bc0fa
commit f89ba2e6ea

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -125,4 +125,22 @@ public class ProcessUtils
});
}
}
public static void runDecompilerExternal(String[] args, boolean exceptionToGUI) throws IOException, InterruptedException
{
try
{
ProcessBuilder pb = new ProcessBuilder(args);
Process p = pb.start();
BytecodeViewer.createdProcesses.add(p);
p.waitFor();
}
catch (Exception e)
{
if(exceptionToGUI)
BytecodeViewer.handleException(e);
else
throw e;
}
}
}