[Android] Catch a more specific exception type (UnsatisfiedLinkError) when trying to load the main native Dolphin 'library'.

Also made the logging tag more specific.

It's generally bad to catch Exception because it's not very specific for the person reading the code. It doesn't say why that exception might have happened, it just indicates it's possible for an Exception to happen, which is quite general.
This commit is contained in:
Lioncash 2013-08-18 18:30:13 -04:00
parent 9f4ca0e0a7
commit 205ebbebbb

View File

@ -37,9 +37,9 @@ public final class NativeLibrary
{
System.loadLibrary("main");
}
catch (Exception ex)
catch (UnsatisfiedLinkError ex)
{
Log.w("me", ex.toString());
Log.w("NativeLibrary", ex.toString());
}
}
}