Skip to content

Commit

Permalink
scripts: waifulib: psvita: make sce_sys truly optional in apply_vpk
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Jan 31, 2025
1 parent 9759b80 commit fa31b05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/waifulib/psvita.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def configure(conf):
conf.find_program('vita-mksfoex', var='MKSFOEX')
conf.find_program('vita-pack-vpk', var='PACKVPK')

conf.env.SCESYS_ST = '-a %s=sce_sys'

class mkvelf(Task.Task):
color = 'CYAN'
run_str = '${ELF_CREATE} -g ${YMLFILE} ${ELFFILE} ${TGT}'
Expand All @@ -45,7 +47,7 @@ class mksfoex(Task.Task):

class mkvpk(Task.Task):
color = 'CYAN'
run_str = '${PACKVPK} -s ${SFOFILE} -b ${FSELFFILE} -a ${SCESYS}=sce_sys ${TGT}'
run_str = '${PACKVPK} -s ${SFOFILE} -b ${FSELFFILE} ${SCESYS_ST:SCESYS} ${TGT}'

@TaskGen.feature('cxxprogram', 'cprogram')
@TaskGen.after_method('apply_link')
Expand Down Expand Up @@ -107,7 +109,8 @@ def apply_vpk(self):
vpkfile = sfofile.change_ext('.vpk')
out_nodes = [vpkfile]

if scesysdir: self.env.SCESYS = str(scesysdir)
if scesysdir:
self.env.SCESYS = str(scesysdir)
self.env.VPKFILE = str(vpkfile)

self.vpk_task = self.create_task('mkvpk', in_nodes)
Expand Down

0 comments on commit fa31b05

Please sign in to comment.