From 205ebbebbbcbb8e3346ec5ee09ededd0010ad400 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 18 Aug 2013 18:30:13 -0400 Subject: [PATCH] [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. --- .../Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java b/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java index 14f7527c1d..8622026b97 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java @@ -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()); } } }