README_SIRI_SHORTCUTS.md
This document explains how to use Siri shortcuts with Provenance to quickly open your favorite games.
Provenance supports several ways to open games using Siri shortcuts:
This shortcut allows you to open a specific game in Provenance by its MD5 hash.
This shortcut allows you to open a game by its name using fuzzy search. Provenance will find the closest match to the name you provide.
This shortcut allows you to specify both a game name and a system name for more precise matching. For example, "Super Mario Bros on NES" or "Sonic on Genesis".
You can find the MD5 hash of a game in Provenance by:
For the fuzzy search features, you don't need to know the exact names. Provenance will try to find the best match based on what you provide. However, using names that are closer to the actual game and system names will yield better results.
Provenance also supports opening games via URL scheme:
provenance://open?md5=YOUR_GAME_MD5_HERE
Or using game name:
provenance://open?title=GAME_NAME_HERE
Or using both game name and system:
provenance://open?title=GAME_NAME_HERE&system=SYSTEM_NAME_HERE
You can use these URL schemes in other apps or shortcuts to open games in Provenance.
If your Siri shortcut is not working:
The Siri shortcuts integration uses the Intents framework to handle requests to open games. When a shortcut is triggered, Provenance uses the following search strategy:
For developers: The implementation can be found in the following files:
PVIntentHandler.swift - Handles the Siri intents with fuzzy search capabilitiesPVAppDelegate+Intents.swift - Registers the intent handler and processes intent responsesIntents.intentdefinition - Defines the available intents and their parameters