mirror of
https://github.com/libretro/RetroArch
synced 2025-01-28 14:54:03 +00:00
Revert name detection.
This reverts commit 544bb079d747b0fc4286268f8de5a5c9959e3350. This reverts commit fbeadae931ae4446b3d8c56a1488df7ff6261ce0. This reverts commit 5de6e809bfc5111cbfcb69add38bb9cf4deb054f.
This commit is contained in:
parent
1a4b094abf
commit
71f2ad6664
@ -19,16 +19,9 @@ import android.graphics.drawable.*;
|
|||||||
|
|
||||||
class ModuleWrapper implements IconAdapterItem {
|
class ModuleWrapper implements IconAdapterItem {
|
||||||
public final File file;
|
public final File file;
|
||||||
private String descName;
|
|
||||||
|
|
||||||
private String getDescName(String name) {
|
|
||||||
name = name.replace(".so", "").replace("libretro_", "");
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ModuleWrapper(Context aContext, File aFile) throws IOException {
|
public ModuleWrapper(Context aContext, File aFile) throws IOException {
|
||||||
file = aFile;
|
file = aFile;
|
||||||
descName = getDescName(file.getName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -38,7 +31,7 @@ class ModuleWrapper implements IconAdapterItem {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getText() {
|
public String getText() {
|
||||||
return descName;
|
return file.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user