Don't append libretro cores that cannot be used.

If "neon" appears in name, and NEON isn't supported,
that libretro core will not be used.
This commit is contained in:
Themaister 2013-01-24 23:42:12 +01:00
parent edbb3a7c65
commit dbc9555274
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ public class RetroArch extends Activity implements
for (final File lib : new File(modulePath).listFiles()) {
String libName = lib.getName();
if (libName.contains("neon") && !cpuIsNeon)
continue;
// Allow both libretro-core.so and libretro_core.so.
if (libName.startsWith("libretro") && !libName.startsWith("libretroarch")) {
try {