tzachshabtay / MonoAGS

AGS (Adventure Game Studio) reimagined in Mono
https://tzachshabtay.github.io/MonoAGS/
Artistic License 2.0
27 stars 8 forks source link

Not all potential exceptions are handled in ALAudioBackend constructor #135

Closed ghost closed 7 years ago

ghost commented 7 years ago

Creation of AudioContext object in the ALAudioBackend constructor is not guarded well enough, as the program catches only few specific exceptions. In case of other exceptions, program crashes.

For example, if openal dll is not found, the exception will be System.TypeInitializationException (with an inner exception being DLLNotFoundException).