Skip to content

Instantly share code, notes, and snippets.

View BujiasBitwise's full-sized avatar
🤙

Bujías Bitwise BujiasBitwise

🤙
  • Europe
View GitHub Profile
@BujiasBitwise
BujiasBitwise / PlayniteRomAddImageSameNameAsCover.ps1
Created January 12, 2023 05:03 — forked from darklinkpower/PlayniteRomAddImageSameNameAsCover.ps1
Adds image with same name as game rom in same directory as Cover image. For selected games
# Requirements: Have at least one Powershell extension installed and enabled
# If you don't have any installed, you can install one by opening this
# link in your browser playnite://playnite/installaddon/Links_Sorter
# Step 1: Paste this part of the script while Playnite is active in a Powershell window
# It may be necessary to do it a few times since it sometimes can give an error
# It has succeded when it shows a dialog in Playnite
Enter-PSHostProcess -Name Playnite.DesktopApp
$PlayniteApi = (Get-Runspace)[-2].SessionStateProxy.GetVariable("PlayniteApi")
$PlayniteApi.Dialogs.ShowMessage("Connected to Playnite session")