mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Move cores to an 'asset' folder - create a directory in phoenix/assets folder,
call it 'cores', move all the cores there. The APK extract and retroarch activity libraries still need to remain in phoenix/libs. This will allow Lioncash to make his core manager be able to uninstall cores etc.
This commit is contained in:
parent
aaa8fc1f37
commit
9e4b672634
@ -44,8 +44,7 @@ public final class CoreSelection extends ListActivity {
|
|||||||
setTitle(R.string.select_libretro_core);
|
setTitle(R.string.select_libretro_core);
|
||||||
|
|
||||||
// Populate the list
|
// Populate the list
|
||||||
final String modulePath = getApplicationInfo().nativeLibraryDir;
|
final File[] libs = new File(getApplicationInfo().dataDir, "cores").listFiles();
|
||||||
final File[] libs = new File(modulePath).listFiles();
|
|
||||||
for (final File lib : libs) {
|
for (final File lib : libs) {
|
||||||
String libName = lib.getName();
|
String libName = lib.getName();
|
||||||
|
|
||||||
@ -73,7 +72,7 @@ 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") && !libName.startsWith("libretroarch")) {
|
if (libName.startsWith("libretro")) {
|
||||||
adapter.add(new ModuleWrapper(this, lib, core_config));
|
adapter.add(new ModuleWrapper(this, lib, core_config));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ public final class MainMenuActivity extends PreferenceActivity {
|
|||||||
|
|
||||||
// Get libretro path and name.
|
// Get libretro path and name.
|
||||||
SharedPreferences prefs = UserPreferences.getPreferences(this);
|
SharedPreferences prefs = UserPreferences.getPreferences(this);
|
||||||
libretro_path = prefs.getString("libretro_path", getApplicationInfo().nativeLibraryDir);
|
libretro_path = prefs.getString("libretro_path", getApplicationInfo().dataDir + "/cores");
|
||||||
libretro_name = prefs.getString("libretro_name", getString(R.string.no_core));
|
libretro_name = prefs.getString("libretro_name", getString(R.string.no_core));
|
||||||
|
|
||||||
// Bind audio stream to hardware controls.
|
// Bind audio stream to hardware controls.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user