mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Read uproject and determine UE version
This commit is contained in:
parent
88220f4f61
commit
c9b893b051
7
inc/ueinstall.ps1
Normal file
7
inc/ueinstall.ps1
Normal file
@ -0,0 +1,7 @@
|
||||
function Get-UE-Install {
|
||||
param (
|
||||
[string]$ueVersion
|
||||
)
|
||||
|
||||
return "TODO"
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
. $PSScriptRoot\packageconfig.ps1
|
||||
|
||||
|
||||
function Get-Uproject-Filename {
|
||||
param (
|
||||
[string]$srcfolder,
|
||||
@ -28,3 +29,23 @@ function Get-Uproject-Filename {
|
||||
return Resolve-Path $projfile
|
||||
}
|
||||
|
||||
# Read the uproject file and return as a PSCustomObject
|
||||
# Haven't defined this as a custom class because we don't control it
|
||||
function Read-Uproject {
|
||||
param (
|
||||
[string]$uprojectfile
|
||||
)
|
||||
|
||||
# uproject is just JSON
|
||||
return (Get-Content $uprojectfile) | ConvertFrom-Json
|
||||
|
||||
}
|
||||
|
||||
function Get-UE-Version {
|
||||
param (
|
||||
# the uproject object from Read-Uproject
|
||||
[psobject]$uproject
|
||||
)
|
||||
|
||||
return $uproject.EngineAssociation
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user