;show_widget=true

[@Enhance]

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

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

[Content Mods]

[*Active?2]
;mode=toggle
;grouping=split5
;progress=true
on:
    file_source './../contents/.loaded/*/{title_id}*'
    delete './../contents/.loaded/{folder_name}/duplicates.txt'
    compare './../contents/.loaded/{split({folder_name}," - ",0)} -*/location_on.txt' './../contents/.loaded/{folder_name}/location_on.txt' './../contents/.loaded/{folder_name}/duplicates.txt'
    move -src './../contents/.loaded/{folder_name}/location_on.txt' -dest './../contents/.loaded/{folder_name}/location_off.txt' -copy_filter './../contents/.loaded/{folder_name}/duplicates.txt'
    delete './../contents/.loaded/{folder_name}/'
off:
    file_source './../contents/*/{title_id}*'
    filter './../contents/.loaded/*/'
    flag './../contents/{folder_name}/*/' './../contents/.loaded/{folder_name}/'
    move './../contents/{folder_name}/' '/atmosphere/contents/' -log_src './../contents/.loaded/{folder_name}/location_off.txt' -log_dest './../contents/.loaded/{folder_name}/location_on.txt'


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


[*Toggle?2]
;mode=toggle
;grouping=split3
;progress=true

on:
    logging
    file_source './../contents/.loaded/*/'
    delete '{file_source}duplicates.txt'
    compare './../contents/.loaded/{split({file_name}," - ",0)} -*/location_on.txt' '{file_source}location_on.txt' '{file_source}duplicates.txt'
    move -src '{file_source}location_on.txt' -dest '{file_source}location_off.txt' -copy_filter '{file_source}duplicates.txt'
    delete '{file_source}'
off:
    logging
    file_source './../contents/*/'
    filter './../contents/.loaded/'
    flag '{file_source}*/' './../contents/.loaded/{file_name}/'
    move '{file_source}' '/atmosphere/contents/' -log_src './../contents/.loaded/{file_name}/location_off.txt' -log_dest './../contents/.loaded/{file_name}/location_on.txt'


[*Delete?2]
;grouping=split3
;hold=true
file_source './../contents/.loaded/*/'
file_source './../contents/*/'
compare './../contents/.loaded/{split({file_name}," - ",0)} -*/location_on.txt' '{file_source}location_on.txt' '{file_source}duplicates.txt'
delete -src '{file_source}location_on.txt' -filter '{file_source}duplicates.txt'
delete {file_source}

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

[contents info]
;mode=table
;background=false
;alignment=left
;offset=6
;spacing=10

'For managing content mods installed in'=''
''='"/switch/.packages/Alchemist/contents/"'

