mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Merge pull request #345 from lioncash/master
[Android] Remove a pointless throws for IOException in ModuleWrapper.
This commit is contained in:
commit
2787345b05
@ -73,13 +73,8 @@ public final class CoreSelection extends ListActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Allow both libretro-core.so and libretro_core.so.
|
// Allow both libretro-core.so and libretro_core.so.
|
||||||
if (libName.startsWith("libretro")
|
if (libName.startsWith("libretro") && !libName.startsWith("libretroarch")) {
|
||||||
&& !libName.startsWith("libretroarch")) {
|
adapter.add(new ModuleWrapper(this, lib, core_config));
|
||||||
try {
|
|
||||||
adapter.add(new ModuleWrapper(this, lib, core_config));
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package org.retroarch.browser;
|
package org.retroarch.browser;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import org.retroarch.browser.preferences.util.ConfigFile;
|
import org.retroarch.browser.preferences.util.ConfigFile;
|
||||||
|
|
||||||
@ -12,7 +11,7 @@ final class ModuleWrapper implements IconAdapterItem {
|
|||||||
public final File file;
|
public final File file;
|
||||||
private final ConfigFile config;
|
private final ConfigFile config;
|
||||||
|
|
||||||
public ModuleWrapper(Context context, File file, ConfigFile config) throws IOException {
|
public ModuleWrapper(Context context, File file, ConfigFile config) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
this.config = config;
|
this.config = config;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user