secureswitools/swisistools/source/interpretsis/commandparser.cpp
branchRCL_3
changeset 73 79647526f98c
parent 66 8b7f4e561641
child 81 42552535c1ac
equal deleted inserted replaced
70:e8965914fac7 73:79647526f98c
   521 				// Found the associated SIS file drive; e.g. +e
   521 				// Found the associated SIS file drive; e.g. +e
   522 				const char* optPtr = *aArgv;
   522 				const char* optPtr = *aArgv;
   523 
   523 
   524 				char drive = tolower(*++optPtr);
   524 				char drive = tolower(*++optPtr);
   525 
   525 
   526 				if (drive < 'a' || drive > 'y')
   526 				if (drive < 'a' || drive > 'z')
   527 					throw CCommandParser::ECmdLineInvalidSISFileAttribute;
   527 					throw CCommandParser::ECmdLineInvalidSISFileAttribute;
   528 
   528 
       
   529 				if(drive == 'z')
       
   530 					{
       
   531 					aParamList.SetFlag(CParameterList::EFlagsRomInstallSet);
       
   532 					sisFileName.iGenerateRomStub = true;
       
   533 					sisFileName.iNotRegister = true;
       
   534 					}
       
   535 				else
       
   536 					{
       
   537 					aParamList.SetFlag(CParameterList::EFlagsExtDriveSet);
       
   538 					}
   529 				// Set target drive
   539 				// Set target drive
   530 				sisFileName.iTargetDrive = drive;
   540 				sisFileName.iTargetDrive = drive;
   531 
   541 
   532 				continue;
   542 				continue;
   533 				}
   543 				}