Pobega / com.fightcade.Fightcade-ARCHIVE

ARCHIVED - go to flathub/com.fightcade.Fightcade
https://github.com/flathub/com.fightcade.Fightcade
GNU General Public License v2.0
2 stars 0 forks source link

fcade currently fails to start the emulator - does not recognize `/app/bin/wine` #12

Closed Pobega closed 4 years ago

Pobega commented 4 years ago

/app/extra/Fightcade/emulator/fcade fcade://play/fbneo/ssf2xjr1:

fcade://play/fbneo/ssf2xjr1
Can't execute /app/extra/Fightcade/emulator/fbneo/fcadefbneo.exe
Pobega commented 4 years ago

For testing purposes: https://github.com/flatpak/flatpak/issues/1789#issuecomment-398324698

You can use flatpak info -l org.freedesktop.Platform//20.08 to see where your local copy of the Sdk/Runtime is and modify it manually in there.

I could throw something like this into a wine file and hopefully it'll work:

#!/bin/sh

/app/bin/wine "$@"
Pobega commented 4 years ago

Yep, when adding in /usr/bin/wine as a wrapper the emulator was able to load successfully. Screenshot from 2020-09-18 01-00-45

Pobega commented 4 years ago

Added Gist of a strace of both a functioning and broken Fcade

Looks like the relevant log in the broken case is here:

[pid     7] write(4, "2020-09-18 09:14:55,108:INFO:Pla"..., 66) = 66
[pid     7] stat("/app/extra/Fightcade/emulator/fbneo/fcadefbneo.exe", {st_mode=S_IFREG|0644, st_size=31975520, ...}) = 0
[pid     7] stat("/app/extra/Fightcade/emulator/fbneo/fcadefbneo.exe", {st_mode=S_IFREG|0644, st_size=31975520, ...}) = 0
[pid     7] stat("/app/extra/Fightcade/emulator/fbneo/fcadefbneo.exe", {st_mode=S_IFREG|0644, st_size=31975520, ...}) = 0
[pid     7] stat("/app/extra/Fightcade/emulator/../../Resources/wine.sh", 0x7ffc9f0dbde0) = -1 ENOENT (No such file or directory)
[pid     7] stat("/usr/bin/wine", 0x7ffc9f0dbde0) = -1 ENOENT (No such file or directory)
[pid     7] stat("/usr/local/bin/wine", 0x7ffc9f0dbde0) = -1 ENOENT (No such file or directory)

I'm generating logs with strace -f /app/extra/Fightcade/emulator/fcade fcade://play/fbneo/ssf2xjr1 > ~/logs/LOGFILE 2>&1

Pobega commented 4 years ago

So interestingly it seems to also look for /app/extra/Resources/wine.sh. Putting a wine wrapper there seems to allow it to launch wine!

Screenshot from 2020-09-18 09-59-08

Pobega commented 4 years ago

Fixed in https://github.com/Pobega/com.fightcade.Fightcade/pull/26/commits/a7d494744adc7e2a760ec18de34b5819f8b5b7be