tkashkin / GameHub

All your games in one place
https://tkashkin.github.io/projects/gamehub
GNU General Public License v3.0
2.25k stars 128 forks source link

Importing Emulated Games - Can't detect games #410

Open munkymack opened 4 years ago

munkymack commented 4 years ago

Importing Emulated Games

Expected behavior

After selecting the directory of games to import, games appear under 'Detected Games' and are imported

Actual behavior

When attempting to import games, navigate to the game directory for specific system (Wii game files in /Wii directory, GameCube files in /gamecube directory) and select the directory. Game files do not show up in the 'Detected Games' window.

Possible cause: I've got the Flatpak version of Gamehub installed on my SSD. The games directory is on a mounted HDD at /mnt (I'm set as owner of everything in /mnt). Are there different permissions needed for Gamehub because it's the Flatpak version?

Steps to reproduce
  1. Click Import Emulated Games
  2. Select Game Directory
  3. Navigate to chosen directory (ex. /Games/Wii)
    • note: .iso files are visible in directory when in the directory selection window
  4. Click 'Select'
  5. Import Emulated Games window displays no games under 'Detected games'
Version and environment
- GameHub
    Version: 0.16.0-b0f5e25-master
    Branch:  master
    Commit:  b0f5e258999b495e0f777ceb6a8349aac0454032
- Environment
    Distro:  [Flatpak] Ubuntu 20.04 LTS
    DE:      ubuntu:GNOME
    GTK:     3.22.30
    Themes:  Yaru-dark | Adwaita
tkashkin commented 4 years ago

Seems to work for me (flatpak on Ubuntu without any additional permissions):

$ flatpak run -v com.github.tkashkin.gamehub --debug
...
[INFO]   - GameHub
[INFO]       Version: 0.16.0-77feae3-dev
[INFO]       Branch:  dev
[INFO]       Commit:  77feae3ce9dbc4fb0d194054fc5cdd887b02cdba
[INFO]   - Environment
[INFO]       Distro:  [Flatpak] Ubuntu 20.04 LTS
[INFO]       DE:      ubuntu:GNOME
[INFO]       GTK:     3.22.30
[INFO]       Themes:  Yaru | Yaru
...
[DEBUG]  [ImportEmulatedGamesDialog] Starting search in '/mnt/Games/Emulated/Nintendo'
[DEBUG]  [search_emulators: Cemu] 'Bayonetta 2': /mnt/Games/Emulated/Nintendo/WiiU/Bayonetta 2/code/PRJ_010.rpx [/mnt/Games/Emulated/Nintendo/WiiU/Bayonetta 2]
[DEBUG]  [search_emulators: Cemu] 'The Legend of Zelda - The Wind Waker': /mnt/Games/Emulated/Nintendo/WiiU/The Legend of Zelda - The Wind Waker/code/cking.rpx [/mnt/Games/Emulated/Nintendo/WiiU/The Legend of Zelda - The Wind Waker]
[DEBUG]  [search_emulators: Cemu] 'The Legend of Zelda - Twilight Princess': /mnt/Games/Emulated/Nintendo/WiiU/The Legend of Zelda - Twilight Princess/code/Zelda.rpx [/mnt/Games/Emulated/Nintendo/WiiU/The Legend of Zelda - Twilight Princess]
[WARN]   [search_retroarch] RetroArch is not installed

How did you setup emulators? Custom emulators require game file patterns to be set. RetroArch should work if you have required RetroArch cores; core and file extension should not be blacklisted in GameHub settings.

Also I would recommend you to use a .deb package instead of flatpak or AppImage, since both flatpak and AppImage have more issues and are tested less. Some improvements are possible in the future, but native packages and builds from source should be more reliable anyway.