Subversion Repositories spk

Rev

Rev 218 | Rev 226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 218 Rev 220
Line 669... Line 669...
669
		{
669
		{
670
			printf ( "Error: Failed to open the Multi-SPK file, %s\n", filename.c_str() );
670
			printf ( "Error: Failed to open the Multi-SPK file, %s\n", filename.c_str() );
671
			return;
671
			return;
672
		}
672
		}
673
 
673
 
674
		printf ( "Multi Package Name: %s\n", spkfile.name().c_str() );
674
		wprintf(L"Multi Package Name: %s\n", spkfile.name().c_str() );
675
		printf ( "Selection Mode: " );
675
		printf ( "Selection Mode: " );
676
		if (spkfile.isSelection ())
676
		if (spkfile.isSelection ())
677
			printf ( "On\n" );
677
			printf ( "On\n" );
678
		else
678
		else
679
			printf ( "Off\n" );
679
			printf ( "Off\n" );
680
 
680
 
681
		CLinkList<SMultiSpkFile> *list = spkfile.GetFileList();
681
		CLinkList<SMultiSpkFile> *list = spkfile.GetFileList();
682
		for ( SMultiSpkFile *ms = list->First(); ms; ms = list->Next() )
682
		for ( SMultiSpkFile *ms = list->First(); ms; ms = list->Next() )
683
		{
683
		{
684
			printf ( "File, %s:\n", ms->sName.c_str() );
684
			wprintf(L"File, %s:\n", ms->sName.c_str() );
685
			wprintf(L"\tSize: %s\n", SPK::GetSizeString (ms->lSize).c_str() );
685
			wprintf(L"\tSize: %s\n", SPK::GetSizeString (ms->lSize).c_str() );
686
			if ( (!ms->sScriptName.empty()) && (!ms->sScriptAuthor.empty()) )
686
			if ( (!ms->sScriptName.empty()) && (!ms->sScriptAuthor.empty()) )
687
				printf ( "\tScript: %s %s by %s\n", ms->sScriptName.c_str(), ms->sScriptVersion.c_str(), ms->sScriptAuthor.c_str() );
687
				wprintf(L"\tScript: %s %s by %s\n", ms->sScriptName.c_str(), ms->sScriptVersion.c_str(), ms->sScriptAuthor.c_str() );
688
			printf ( "\tDefault Install: " );
688
			printf ( "\tDefault Install: " );
689
			if ( ms->bOn )
689
			if ( ms->bOn )
690
				printf ( "Yes\n" );
690
				printf ( "Yes\n" );
691
			else
691
			else
692
				printf ( "No\n" );
692
				printf ( "No\n" );
Line 1182... Line 1182...
1182
			printf ( "Unable to find the file \"%s\" in the package\n", type.c_str() );
1182
			printf ( "Unable to find the file \"%s\" in the package\n", type.c_str() );
1183
			return;
1183
			return;
1184
		}
1184
		}
1185
 
1185
 
1186
		// extracts the file from the archive, to the given directory
1186
		// extracts the file from the archive, to the given directory
1187
		printf ( "Extracting SPK file, %s, from package... ", ms->sName.c_str() );
1187
		wprintf(L"Extracting SPK file, %s, from package... ", ms->sName.c_str() );
1188
		if (spkfile.extractFile(ms, addfile))
1188
		if (spkfile.extractFile(ms, addfile))
1189
			printf ( "(Done)\n" );
1189
			printf ( "(Done)\n" );
1190
		else
1190
		else
1191
			printf ( "(Error)\n" );
1191
			printf ( "(Error)\n" );
1192
	}
1192
	}