mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 23:14:19 +00:00
added System.exit so that vm instances gets nuked in webstart
This commit is contained in:
parent
4ad9b565d5
commit
4a85362ccb
38 changed files with 62 additions and 22 deletions
|
|
@ -60,14 +60,14 @@ public class MusicPlayer {
|
|||
File file = new File(args[0]);
|
||||
if (!file.exists()) {
|
||||
System.out.println("No such file: " + args[0]);
|
||||
return;
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
try {
|
||||
FMOD.create();
|
||||
} catch (FMODException fmode) {
|
||||
fmode.printStackTrace();
|
||||
return;
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
System.out.println("Initializing FMOD");
|
||||
|
|
@ -101,5 +101,6 @@ public class MusicPlayer {
|
|||
|
||||
FSound.FSOUND_Close();
|
||||
FMOD.destroy();
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue