mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
[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:
parent
9f4ca0e0a7
commit
205ebbebbb
@ -37,9 +37,9 @@ public final class NativeLibrary
|
|||||||
{
|
{
|
||||||
System.loadLibrary("main");
|
System.loadLibrary("main");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (UnsatisfiedLinkError ex)
|
||||||
{
|
{
|
||||||
Log.w("me", ex.toString());
|
Log.w("NativeLibrary", ex.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user