Is there a way to send which language version of a game you want to download via the GOG API?
I’m currently trying to use the GOG API to download the Eye of the Beholder 2. When I download the game from my collection without a language defined via the GOG API, I get the Spanish version of the game. I have English set as my default language in my GOG account.
After reading the other person’s issues, I think I have a clue. It looks like the GOG API is downloading the last available language. For EoB2, GOG offers de, en, es versions of EoB2. If you look on the GOG website, it is listed in that previously mentioned order. In @MinniMe’s post, GOG offers Toonstruck only de and en languages. Only the en language version of Toonstruck is downloaded via Lutris’s implementation of GOG’s API.
I found out my issue wasn’t really the API but with innoextract. GOGs InnoSetup file can have multiple versions of the same file in the archive based on language. I had to put an input selector in the installer section to let the user select the desired language before the extract happens. Here is a little exert of my installer script as an example.