Skip to content

Fix Install in the missing-dependency modal - #489

Open
natepelzel wants to merge 1 commit into
Drop-OSS:developfrom
natepelzel:fix/dependency-modal-enable-updates
Open

Fix Install in the missing-dependency modal#489
natepelzel wants to merge 1 commit into
Drop-OSS:developfrom
natepelzel:fix/dependency-modal-enable-updates

Conversation

@natepelzel

@natepelzel natepelzel commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

When a game needs an emulator that isn't installed, pressing Play shows the "Missing required dependency" modal. Its Install button calls download_game without enableUpdates, which the command requires, so the click fails with:

invalid args `enableUpdates` for command `download_game`: command download_game missing required key enableUpdates

The library page's install flow already passes enableUpdates: isLatest. This does the same in the modal: true when the version being installed is the latest one.

Reproduced with an Emulator entry linked from a game's launch command: the modal opens fine, and Install fails with the error above until this change.

Test plan

  • Import an Emulator with a launch command, and a game whose launch command uses it.
  • With the emulator not installed, press Play on the game -> the modal appears -> Install starts the emulator download instead of erroring.
  • After it downloads, press Play again -> the game launches through the emulator.

@natepelzel
natepelzel marked this pull request as draft September 4, 2026 19:34
The "Missing required dependency" modal calls download_game without
enableUpdates, but the command requires it, so clicking Install fails with:

  invalid args `enableUpdates` for command `download_game`: command
  download_game missing required key enableUpdates

Pass it the same way the library page does: true when installing the
latest version.
@natepelzel
natepelzel force-pushed the fix/dependency-modal-enable-updates branch from c0b0ee5 to 472b7e8 Compare September 4, 2026 21:00
@natepelzel
natepelzel marked this pull request as ready for review September 4, 2026 21:37
@DecDuck

DecDuck commented Sep 4, 2026

Copy link
Copy Markdown
Member

I think this should just be a flat false, because otherwise Drop may update the dependency out underneath the game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants