Skip to content

feat(handheld): Add to home screen for PC games, PS5 and Xbox - #104

Open
xservzeroman wants to merge 1 commit into
fix/ui-bugsfrom
feat/home-shortcuts
Open

xservzeroman wants to merge 1 commit into
fix/ui-bugsfrom
feat/home-shortcuts

Conversation

@xservzeroman

Copy link
Copy Markdown

Add to home screen on the handheld: PC games, PS5 and Xbox get an icon on the device's own launcher (asked for: "ES-DE in xserv Gaming as an icon on the Odin desktop").

Changelog

  • Tile menu (long press, or X on Home): Add to home screen for PC games, PS5 and Xbox (not Android apps: they have their own icon).
  • addToHomeScreen(): ShortcutManager.requestPinShortcut (Android 8+), id game:<key>, short label = the game, long label = "game (PC name)". The intent opens HandheldHomeActivity with EXTRA_PLAY_HERE, the existing path that waits for the PC's state, offers to wake it and asks first when another game runs.
  • shortcutIcon(): adaptive bitmap from your own picture (CustomArt), else the box art the tile shows, else the tile's cover with the name inside the launcher's safe zone.
  • Build: test257. Lint: 0 errors. Stacked on fix(ui): menus show all options, one Frame pacing for PC and PS5, quiet Add apps tile, top pill ellipsis #103.

To test

  • Odin: long press ES-DE → Add to home screen → confirm in the launcher's box. The icon shows ES-DE's art (or your picture); tapping it opens MoonCast and starts ES-DE on xserv Gaming.
  • With xserv Gaming asleep: the icon offers to wake it.
  • PS5 and Xbox tiles: the same.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xservzeroman

Copy link
Copy Markdown
Author

Tested on the Odin: the first try crashed (throwIfHwBitmapInSwMode: ES-DE's box art is a HARDWARE bitmap); fixed by copying to ARGB_8888 before drawing. Then ES-DE → Add to home screen → launcher's AddItemActivity → added; pinned shortcut game:pc:…:852820498 is on the Odin's home screen with ES-DE's art.

🤖 Generated with Claude Code

@xservzeroman

Copy link
Copy Markdown
Author

Verified on the Odin: ES-DE (xserv Gaming) → Add to home screen → the launcher's box shows the icon from ES-DE's box art → Add → the icon is on the home screen (shortcut game:pc:…:852820498, pinned). Found and fixed on the way: box art loaded as a hardware bitmap crashed shortcutIcon() (software canvas); it's copied to ARGB_8888 first. The test257 APKs were replaced with the fixed build.

🤖 Generated with Claude Code

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