Hi, I would like to open games in a single blow, (without the steps retroarch–>selecting core–>selecting game…) and the best way I found right now is to open the emulator through ADB shell (on pc I connect my android in developer mode with usb, on Android Studio, and there I can insert commands to create the equivalent of cmd batch file on windows). Right now this is my best try so far, but it actually just launch the emulator (no loaded game or core whatsoever):
adb shell am start -n com.retroarch/.browser.mainmenu.MainMenuActivity -e rom_file "/storage/emulated/0/Books/MarioSlam.nds"
I’ll breakdown the different parts so anyone that want to repeat can try himself/herself
- adb shell am start command to launch an app
- -n com.retroarch the actual name of the app as the system knows it (found it using command “adb shell pm list packages”)
- /.browser.mainmenu.MainMenuActivity the actual intent (a function) u want the app to use (this one is the only one avaiable in my case and set up the “main activity” of the app retro arch, found with “adb shell dumpsys package com.retroarch”)
- -e rom_file “/storage/emulated/0/Books/MarioSlam.nds” (the extra argument you include with “-e” that in this case is the path to the rom I want to be loaded)
I also read the possibility to insert the desired core to use with -e LIBRETRO “/data/user/0/com.retroarch/cores/melondsds_libretro_android.so” and also that I can use -e PATH “rom_directory_path” instead of the one I used. But I keep getting the same results. Any help?
(The final idea would be to use commands like this inside external memories like nfc tag to emulate the idea of game cartirdge, but this would be the first step anyway )