added System.exit so that vm instances gets nuked in webstart

This commit is contained in:
Brian Matzon 2005-05-22 12:12:10 +00:00
parent 4ad9b565d5
commit 4a85362ccb
38 changed files with 62 additions and 22 deletions

View file

@ -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);
}
}