;show_widget=true

[@Integrate]

[gap]
;mode=table
;background=false
;gap=6

[Title ID]
;mode=table
;polling=true
'Title ID'='{title_id}'
'Build ID'='{build_id}'

[Install pchtxt]

[*Active?pchtxt_repo]
;grouping=split2
logging
file_source './../repos/pchtxts/*/*/*.pchtxt-*{title_id}*'
cp "{slice({file_source},0,{math({length({file_source})}-17)})}" './../pchtxts/{folder_name}/'

[gap]
;mode=table
;background=false
;gap=12

[*Repos?1]
;mode=forwarder
package_source ./pchtxt_repos.ini

[gap]
;mode=table
;background=false
;gap=12


[*Search Pattern?pchtxt_repo]
;mode=option
list_file_source './../search_patterns.txt'
set-footer '{list_file_source(*)}'


[*Search Results?pchtxt_repo]
;grouping=split2
ini_file './config.ini'
file_source './../repos/pchtxts/*/*{ini_file("*Search Pattern?pchtxt_repo",footer)}*/*.pchtxt'
cp "{file_source}" './../pchtxts/{folder_name}/'