Skip to content

Instantly share code, notes, and snippets.

@mikew
Last active August 28, 2021 18:41
Show Gist options
  • Save mikew/9a122f2d86d9ae75e66fbcd0dc7ccd33 to your computer and use it in GitHub Desktop.
Save mikew/9a122f2d86d9ae75e66fbcd0dc7ccd33 to your computer and use it in GitHub Desktop.
GloSC UWP Path script

The process of getting the full path of a UWP application for GloSC is a little cumbersome. This script aims to automate it.

It prints the contents of an ini file for GloSC, with the name of the UWP app.

param (
# Either run this as a script and pass a `-name` parameter, or write the
# name below and copy/paste the contents of this file in PowerShell.
[string]$name = "Psychonauts 2"
)
Get-StartApps -Name "$name" | ForEach-Object { `
Write-Host " `
$($_.Name).ini `
`
[BaseConf] `
bEnableOverlay=1 `
bEnableControllers=1 `
bUseDesktopConfig=0 `
bHookSteam=1 `
version=518 `
`
[LaunchGame] `
bLaunchGame=1 `
Path=$($_.appid) `
Args= `
Type=UWP `
bCloseWhenDone=1 `
"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment