From 88688fc2e93b0316c4e106cb82d1eb22175bc8c4 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b08762b0-b915-fc4b-9d8c-17b2551a87ff> Date: Tue, 26 Aug 2008 15:03:51 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B7=E3=82=B9=E3=83=86=E3=83=A0=E3=82=A2?= =?UTF-8?q?=E3=83=97=E3=83=AA=E3=81=AB=E3=81=AF=E3=82=B5=E3=83=95=E3=82=A3?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=82=B9=E3=82=92=E3=81=A4=E3=81=91=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2281 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/tests/CustomSystemUpdater/work/mkcls.py | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/build/tests/CustomSystemUpdater/work/mkcls.py b/build/tests/CustomSystemUpdater/work/mkcls.py index bf095b6e..668f22af 100644 --- a/build/tests/CustomSystemUpdater/work/mkcls.py +++ b/build/tests/CustomSystemUpdater/work/mkcls.py @@ -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)