Problem: The launcher knows about locally installed games and could work without internet connection, but the dropdown boxes for games to start uses releases as backing information.
Solution: Take the locally installed games into account when assembling the list of releases shown in the dropdown box.
Closes #198, #199.
How to test
Start the launcher while being connected to the internet, and download a game.
Stop the launcher.
Disconnect from the internet.
Start the launcher.
Ensure that any locally installed games can be selected in the drop-down and started.
There might be a bunch of other things that might be affected by this change:
what happens if there is no game installed at all (a) when offline, (b) when online
what happens if the installed games change (e.g., by downloading or deleting an game)
Outstanding before merging
[x] 463bbd1 There are currently duplicate entries for the same release for installed games, as the the GameRelease fetched from online sources and the dummy GameRelease for locally installed games are not merged.
[x] 8cc09c9 When offline, the drop-down is initially empty, even if there are locally installed games.
Contains
Problem: The launcher knows about locally installed games and could work without internet connection, but the dropdown boxes for games to start uses releases as backing information.
Solution: Take the locally installed games into account when assembling the list of releases shown in the dropdown box.
Closes #198, #199.
How to test
There might be a bunch of other things that might be affected by this change:
Outstanding before merging
GameRelease
fetched from online sources and the dummyGameRelease
for locally installed games are not merged.