システムアプリにはサフィックスをつけるように変更

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2281 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
(no author) 2008-08-26 15:03:51 +00:00
parent 002608f6ff
commit 88688fc2e9

View File

@ -106,9 +106,26 @@ def main():
#--- make directory for cls
tadpath = os.path.dirname(tadfile)
gamecode = binascii.unhexlify('%x'%titleId_L)
#clsdir = ''.join([tadpath,'/',gamecode])
clsdir = ''.join(['./',gamecode])
keycode = gamecode[:3]
sysdic = { 'HNA':'menu',
'HNB':'setting',
'HNC':'wfirm',
'HND':'dlplay',
'HNE':'pchat',
'HNF':'shop',
'HNG':'browser',
'HNH':'whlist',
'HNI':'photo',
'HNJ':'nzv',
'HNK':'sound',
'HNL':'verdata',
}
try:
suffix = sysdic.get(keycode)
if suffix:
clsdir = ''.join(['./',gamecode,'-',suffix])
else:
clsdir = ''.join(['./',gamecode])
os.mkdir(clsdir)
except:
print '%s : can not create dir %s' % (sys.argv[0],clsdir)