Creates a self-extracting install script.

This commit is contained in:
Markil3
2021-09-15 09:03:48 -06:00
parent 90f82cb05d
commit f7370ba08a
9 changed files with 210 additions and 9 deletions

View File

@@ -203,7 +203,10 @@ public class PlayerEnvironment
*/
runArguments(ops, params, System.out);
Runtime.getRuntime().addShutdownHook(new Thread(connector::stop));
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
connector.stop();
PlayerManager.getPlayers().shutdownPlayers();
}));
}
/**

View File

@@ -619,12 +619,13 @@ public class Interface extends JFrame implements SongDisplayListener, ComponentL
@Override
public void windowClosing(WindowEvent windowEvent)
{
PlayerManager.getPlayers().shutdownPlayers();
logger.info("Window closing");
}
@Override
public void windowClosed(WindowEvent windowEvent)
{
logger.info("Window closed");
}
@Override