Initial commit
This commit is contained in:
17
scripts/editor.ps1
Normal file
17
scripts/editor.ps1
Normal file
@ -0,0 +1,17 @@
|
||||
Clear-Host
|
||||
|
||||
$path_scripts = $PSScriptRoot
|
||||
$path_helpers = join-path $path_scripts 'helpers'
|
||||
$path_root = split-path -Parent -Path $path_scripts
|
||||
|
||||
# Hardcoded for personal context to use existing engine in Surgo, change to desired source
|
||||
$path_ue = join-path '../../Surgo' 'UE'
|
||||
$path_project = join-path $path_root 'Project'
|
||||
|
||||
$ue_editor = join-path $path_ue 'Engine\Binaries\Win64\UnrealEditor.exe'
|
||||
|
||||
$gasathon_uproject = join-path $path_project 'GASATHON.uproject'
|
||||
|
||||
$feditor_log = '-log'
|
||||
|
||||
& $ue_editor $gasathon_uproject $feditor_log
|
25
scripts/regen_project.ps1
Normal file
25
scripts/regen_project.ps1
Normal file
@ -0,0 +1,25 @@
|
||||
Clear-Host
|
||||
|
||||
$path_scripts = $PSScriptRoot
|
||||
$path_helpers = join-path $path_scripts 'helpers'
|
||||
$path_root = split-path -Parent -Path $path_scripts
|
||||
$path_ue = join-path '../../Surgo' 'UE'
|
||||
$path_project = join-path $path_root 'Project'
|
||||
|
||||
$uproject = join-path $path_project 'GASATHON.uproject'
|
||||
|
||||
$UBT = join-path $path_ue 'Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe'
|
||||
|
||||
$fubt_project = '-project'
|
||||
$fubt_projectfiles = '-projectfiles'
|
||||
$fubt_game = '-game'
|
||||
$fubt_engine = '-engine'
|
||||
$fubt_progress = '-progress'
|
||||
|
||||
$ubt_args = @()
|
||||
$ubt_args += $fubt_projectfiles
|
||||
$ubt_args += "$fubt_project=$uproject"
|
||||
$ubt_args += $fubt_game
|
||||
$ubt_args += $fubt_engine
|
||||
$ubt_args += $fubt_progress
|
||||
& $UBT $ubt_args
|
Reference in New Issue
Block a user