mmatyas / pegasus-frontend

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

Unable to open the DraStic games #1051

Closed fokhei closed 1 year ago

fokhei commented 1 year ago

The issue

Unable to open the DraStic games (DraStic is launched, but shows the error message "unable to open game from content://org.pegasus_frontend.android.files/ext/roms/xxxx....."). I using the config from pegasus config generator:

collection: Nintendo DS
shortname: nds
extensions: bin, dsi, nds
launch: am start
  -n com.dsemu.drastic/.DraSticActivity
  -a android.intent.action.VIEW
  -d "{file.uri}"
  --activity-clear-task
  --activity-clear-top
  --activity-no-history

I also use the Daijisho frontend and compare its amStartArguments, it is almost the same but Daijisho works fine. https://github.com/TapiocaFox/Daijishou/blob/main/platforms/NintendoDS.json

So I guess it is a bug of pegasus frontend

System info

Android 12 on Galaxy Note 10+ DraStic r2.6.0.4a

Pegasus version

pegasus-fe_alpha16-42-g996720eb_android.apk

Pegasus log

(the log is empty)

mmatyas commented 1 year ago

Hi, unfortunately after the launch command runs, and the emulator launches, there's not much Pegasus can do about how the emulator behaves. "Unable to open" issues usually indicate that the app expects the file path in a different format (file.uri or file.path or file.documenturi), you could try to experiment with that first. The config generator uses launch commands submitted by our community members, so if it doesn't work out, you might also find some more help on Discord too.

fokhei commented 1 year ago

Hi, unfortunately after the launch command runs, and the emulator launches, there's not much Pegasus can do about how the emulator behaves. "Unable to open" issues usually indicate that the app expects the file path in a different format (file.uri or file.path or file.documenturi), you could try to experiment with that first. The config generator uses launch commands submitted by our community members, so if it doesn't work out, you might also find some more help on Discord too.

Thanks, after some research on Discord, I have fixed this issue in 2 steps:

  1. use file.documenturi instead of file.uri
  2. add the roms directory to Pegasus Accessible Android directories