mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.17k stars 104 forks source link

Android Metadata Generator: Dolphin launch issues #1096

Open nicjansma opened 7 months ago

nicjansma commented 7 months ago

The issue

On the Android Metadata Generator page, if you choose GameCube / Wii (Dolphin), it generates this:

collection: GameCube / Wii
shortname: gc
extensions: ciso, dff, dol, elf, gcm, gcz, iso, m3u, rvz, tgc, wad, wbfs
launch: am start
  -n org.dolphinemu.dolphinemu/.ui.main.MainActivity
  -a android.intent.action.VIEW
  -e AutoStartFile "{file.path}"
  --activity-clear-task
  --activity-clear-top
  --activity-no-history

However, Dolphin's MainActivity doesn't allow .VIEW intents, so the launch fails with ActivityNotFoundException.

Launching without the -a android.intent.action.VIEW component works.

Additionally, the docs list using the .AppLinkActivity, but I couldn't get that to work. I think it needs a dolphin:// scheme for it to match. So I think just the .MainActivity without .VIEW is the way to go.

PS, is there a repository for the metadata generator? I couldn't find one.

System info

Android 13 on a Ayn Odin 2

Pegasus version

Built from latest source and deployed as APK

mmatyas commented 7 months ago

Sorry for the late reply! The standalone commands on the site are submitted by the community, so it is possible that things get outdated or incorrect. If you know a better launch command, let me know here or on Discord.