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
|
|
@ -59,21 +59,21 @@ public class StreamPlayer {
|
|||
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");
|
||||
if (!FSound.FSOUND_Init(44100, 32, 0)) {
|
||||
System.out.println("Failed to initialize FMOD");
|
||||
System.out.println("Error: " + FMOD.FMOD_ErrorString(FSound.FSOUND_GetError()));
|
||||
return;
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
System.out.println("Loading " + args[0]);
|
||||
|
|
@ -98,5 +98,6 @@ public class StreamPlayer {
|
|||
|
||||
FSound.FSOUND_Close();
|
||||
FMOD.destroy();
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue