Advertisement
metalx1000

Android Load RetroArch Game Rom from adb shell

Jun 2nd, 2023 (edited)
1,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.48 KB | None | 0 0
  1. #install retroarch
  2. wget -c "https://buildbot.libretro.com/stable/1.16.0/android/RetroArch.apk" -O /tmp/RetroArch.apk
  3. adb install -g /tmp/RetroArch.apk
  4. #load retroarch and install cores [example: mame-current]
  5. adb shell am start -n com.retroarch/.browser.retroactivity.RetroActivityFuture
  6.  
  7. #!!!go to "Online Updater" and install all updates at bottom of list!!!!
  8. echo 'Go to "Online Updater" and install all updates at bottom of list.'
  9. echo "Once Complete Press Enter To Continue."
  10. read q
  11.  
  12. #Download and push roms to Android device
  13. mkdir /tmp/roms
  14. cd /tmp/roms
  15. wget -c "https://archive.org/download/mame-merged/mame-merged/qsound_hle.zip"
  16. wget -c "https://archive.org/download/mame-merged/mame-merged/mvsc.zip"
  17. #adb shell mkdir -p /sdcard/RetroArch/downloads
  18. adb push mvsc.zip qsound_hle.zip /sdcard/RetroArch/downloads
  19.  
  20. #make sure retroarch is closed
  21. adb shell am force-stop com.retroarch
  22.  
  23. #cores can be found in /data/data/com.retroarch/cores/
  24. #although you will need root to list them through the shell
  25. #another option it find core commands is here:
  26. #https://pegasus-frontend.org/tools/metagen-android/
  27.  
  28. #load game with core
  29. adb shell am start -n com.retroarch/.browser.retroactivity.RetroActivityFuture -e ROM /sdcard/RetroArch/downloads/mvsc.zip -e LIBRETRO /data/data/com.retroarch/cores/mamearcade_libretro_android.so -e CONFIGFILE /storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg -e QUITFOCUS --activity-clear-task --activity-clear-top --activity-no-history
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement