trackeditor: revert last commit

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8286 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 689a5286e1bae4eac551feb5b63077110566725e
Former-commit-id: e7e8aa64a2802d99f2cb4c55767bc617defa3965
This commit is contained in:
iobyte 2022-07-01 00:02:32 +00:00
parent f6f056a238
commit c9e36177d5

View file

@ -91,25 +91,9 @@ public class TrackgenPanel extends JDialog implements Runnable
try
{
String trackgen = "sd2-trackgen";
String ls_str;
String tmp = "";
Path path = Paths.get(trackgen);
if (!Files.isExecutable(path))
{
if (!Files.exists(path))
{
JOptionPane.showMessageDialog(this, "Can't find : " + trackgen +
"\n\nMake sure " + trackgen + " is installed or can be found using the path environment variable.",
"Export AC3D", JOptionPane.ERROR_MESSAGE);
return;
}
JOptionPane.showMessageDialog(this, "Can't execute : " + path.getFileName(), "Export AC3D", JOptionPane.ERROR_MESSAGE);
return;
}
Process ls_proc = Runtime.getRuntime().exec("sd2-trackgen" + args);
// get its output (your input) stream
BufferedReader ls_in = new BufferedReader(new InputStreamReader(ls_proc.getInputStream()));