bburky / playnite-non-steam-shortcuts

A Playnite extension to create non-Steam shortcuts
MIT License
38 stars 2 forks source link

Set "Include in VR Library" for VR games automatically #8

Open Bluscream opened 4 years ago

Bluscream commented 4 years ago
Screenshot(s) ![](https://cdn.discordapp.com/attachments/699577276571975760/710953951326896168/image.png)

The formula concept i would suggest using:

(game.name.lower().contains(" VR ")) ||
(game.name.lower().endswith("VR")) ||
(game.name.lower().startswith("VR")) ||
(game.source == "Oculus") ||
(game.source == "Viveport") ||
(str(game.features).lower().contains("VR"))
bburky commented 4 years ago

A similar and simpler option is to require all games to be placed in a category called "VR". If a game is in the VR category it would be marked as openvr in the Steam shortcut.

Do you still want allowoverlay enabled on VR games? Not sure what that actually does for VR games. Are these non-SteamVR games you're launching from Steam shortcuts, or SteamVR games you're launching? I wonder if that matters for the overlay?

Bluscream commented 4 years ago

A similar and simpler option is to require all games to be placed in a category called "VR". If a game is in the VR category it would be marked as openvr in the Steam shortcut.

As much as i would love this approach, it would not work with games from oculus for example. All their games are VR games so they don't bother with returning "VR" as a tag or feature

Do you still want allowoverlay enabled on VR games? Not sure what that actually does for VR games. Are these non-SteamVR games you're launching from Steam shortcuts, or SteamVR games you're launching? I wonder if that matters for the overlay?

I think it doesn't matter. Overlay is handled by the vrdashboard while in VR which is active anyway while steam and steamvr are running

bburky commented 4 years ago

Yeah, I think I set the category manually. I like auto setting based on the source. But parsing the name of the game seems a bit questionable.

Bluscream commented 4 years ago

Sure, i can always set that later in the source myself!