mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
scripts: waifulib: support vpk and nro pass for pure C programs, just in case
This commit is contained in:
@@ -31,7 +31,7 @@ class elf2nro(Task.Task):
|
||||
return '%sConverting to NRO' % Logs.colors_lst['CYAN']
|
||||
return 'Converting to NRO'
|
||||
|
||||
@TaskGen.feature('cxxprogram')
|
||||
@TaskGen.feature('cxxprogram', 'cprogram')
|
||||
@TaskGen.after_method('apply_link')
|
||||
def apply_nro(self):
|
||||
elffile = self.link_task.outputs[0]
|
||||
|
||||
@@ -96,7 +96,7 @@ def apply_sfo(self):
|
||||
self.sfo_task = self.create_task('mksfoex', in_nodes)
|
||||
self.sfo_task.set_outputs(out_nodes)
|
||||
|
||||
@TaskGen.feature('cxxprogram')
|
||||
@TaskGen.feature('cxxprogram', 'cprogram')
|
||||
@TaskGen.after_method('apply_sfo')
|
||||
def apply_vpk(self):
|
||||
fselffile = self.fself_task.outputs[0]
|
||||
|
||||
Reference in New Issue
Block a user