PhilipK / BoilR

Synchronize games from other platforms into your Steam library
Apache License 2.0
1.44k stars 42 forks source link

Add support for importing Amazon games through Heroic #360

Open Benawesome20 opened 1 year ago

Benawesome20 commented 1 year ago

Is your feature request related to a problem? Please describe. Heroic recently added support for Amazon games, and BoilR currently only looks at installed games to import from Heroic through Legendary and GOG.

Describe the solution you'd like BoilR should look at the installed.json list for Nile in addition to the installed.json's for Legendary and GOG when considering Heroic games to import. I don't know Rust but glancing at the code, I think only another "get installed location" function and code to call it when searching the others is needed for this.

The Nile installed.json file is located at config/heroic/nile_config/nile/ in both the flatpak and user bin versions.

Describe alternatives you've considered An alternative to looking at installed lists would be looking at a list of game installation folders, so BoilR wouldn't have to care about different platforms and instead scrape games directly from where they're installed. This is how I assumed it worked at first and then was confused when I couldn't add any install locations in the settings.

Just in case these hard paths change in the future, it may be worth making them a config file setting as well.

sygmakikus commented 1 month ago

I know this is an old post but I am having this issue as well. Heroic supports Epic, Gog and Amazon games but looking at the code at src/platforms/heroic/heroic_platform.rs it seems like Boilr only checks games json file for the first two.

Taking a look at Heroic files I also found that Amazon installation file is located at .var/app/com.heroicgameslauncher.hgl/config/heroic/nile_config/nile/installed.json in my Steam Deck (flatpack version).

Hope this thread gets some interest and this feat is included sometime 😄