|
@@ -35,7 +35,7 @@ import java.io.InputStream;
|
|
|
|
|
|
public class TextCopyFileActivity extends Activity {
|
|
public class TextCopyFileActivity extends Activity {
|
|
private static final String TAG = "TextCopyFileActivityTAG";
|
|
private static final String TAG = "TextCopyFileActivityTAG";
|
|
- private Button btn1, btn2, btn3;
|
|
|
|
|
|
+ private Button btn1, btn2, btn3, btn4;
|
|
private Context mContext;
|
|
private Context mContext;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -109,6 +109,7 @@ public class TextCopyFileActivity extends Activity {
|
|
btn1 = findViewById(R.id.btn1);
|
|
btn1 = findViewById(R.id.btn1);
|
|
btn2 = findViewById(R.id.btn2);
|
|
btn2 = findViewById(R.id.btn2);
|
|
btn3 = findViewById(R.id.btn3);
|
|
btn3 = findViewById(R.id.btn3);
|
|
|
|
+ btn4 = findViewById(R.id.btn4);
|
|
btn1.setOnClickListener(new View.OnClickListener() {
|
|
btn1.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
@Override
|
|
public void onClick(View view) {
|
|
public void onClick(View view) {
|
|
@@ -136,6 +137,14 @@ public class TextCopyFileActivity extends Activity {
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ btn4.setOnClickListener(new View.OnClickListener() {
|
|
|
|
+ @Override
|
|
|
|
+ public void onClick(View view) {
|
|
|
|
+ startGame(Environment.getExternalStorageDirectory().getAbsolutePath() + "/arcade/rom/PPSSPP/三国无双/三国无双.iso",
|
|
|
|
+ mContext.getFilesDir().getParent() + "/cores/ppsspp_libretro_android.so",
|
|
|
|
+ EmulatorType.PSP);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
private void startGame(String rompath, String corepath, EmulatorType Type) {
|
|
private void startGame(String rompath, String corepath, EmulatorType Type) {
|
|
@@ -159,6 +168,9 @@ public class TextCopyFileActivity extends Activity {
|
|
case NES:
|
|
case NES:
|
|
coreName = "mesen_libretro_android.so";
|
|
coreName = "mesen_libretro_android.so";
|
|
break;
|
|
break;
|
|
|
|
+ case PSP:
|
|
|
|
+ coreName = "ppsspp_libretro_android.so";
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(coreName))
|
|
if (!TextUtils.isEmpty(coreName))
|
|
startCopy(coreName,
|
|
startCopy(coreName,
|