Subversion Repositories spk

Rev

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

Rev 197 Rev 203
Line 166... Line 166...
166
 
166
 
167
		// now do the settings
167
		// now do the settings
168
		if ( settings.Compare("author") )
168
		if ( settings.Compare("author") )
169
		{
169
		{
170
			spkfile.setAuthor(argv[4]);
170
			spkfile.setAuthor(argv[4]);
171
			printf( "Settings Author to: %s\n", spkfile.author().c_str());
171
			wprintf(L"Settings Author to: %s\n", spkfile.author().c_str());
172
		}
172
		}
173
 
173
 
174
		spkfile.writeFile(filename.ToString());
174
		spkfile.writeFile(filename.ToString());
175
		printf ( "\nSPK file has been written sucessfully\n" );
175
		printf ( "\nSPK file has been written sucessfully\n" );
176
	}
176
	}
Line 491... Line 491...
491
		if ( check == SPKFILE_SINGLESHIP )
491
		if ( check == SPKFILE_SINGLESHIP )
492
			sType = "Ship";
492
			sType = "Ship";
493
		else
493
		else
494
			sType = "Package";
494
			sType = "Package";
495
 
495
 
496
		printf ( "%s Name: %s\n", sType.c_str(), pBaseFile->name().c_str() );
496
		wprintf(L"%hs Name: %s\n", sType.c_str(), pBaseFile->name().c_str() );
497
		if ( !pBaseFile->email().empty() )
497
		if ( !pBaseFile->email().empty() )
498
			printf ( "%s Author: %s (%s)\n", sType.c_str(), pBaseFile->author().c_str(), pBaseFile->email().c_str() );
498
			wprintf(L"%hs Author: %s (%hs)\n", sType.c_str(), pBaseFile->author().c_str(), pBaseFile->email().c_str() );
499
		else
499
		else
500
			printf ( "%s Author: %s\n", sType.c_str(), pBaseFile->author().c_str() );
500
			wprintf(L"%hs Author: %s\n", sType.c_str(), pBaseFile->author().c_str() );
501
		if ( !pBaseFile->version().empty() ) printf ( "%s Version: %s\n", sType.c_str(), pBaseFile->version().c_str() );
501
		if ( !pBaseFile->version().empty() ) printf ( "%s Version: %s\n", sType.c_str(), pBaseFile->version().c_str() );
502
 
502
 
503
		//for game
503
		//for game
504
		printf("For Games: ");
504
		printf("For Games: ");
505
		if ( !pBaseFile->AnyGameCompatability() )
505
		if ( !pBaseFile->AnyGameCompatability() )
Line 508... Line 508...
508
			wprintf(L"%s", p.getGameTypesString(pBaseFile, true).c_str());
508
			wprintf(L"%s", p.getGameTypesString(pBaseFile, true).c_str());
509
		printf("\n");
509
		printf("\n");
510
 
510
 
511
		if ( pXspFile )
511
		if ( pXspFile )
512
		{
512
		{
513
			printf ("Ship Display Name: %s\n", pXspFile->GetShipName(44).c_str());
513
			wprintf(L"Ship Display Name: %s\n", pXspFile->shipName(44).c_str());
514
			if ( pXspFile->IsExistingShip() )
514
			if ( pXspFile->IsExistingShip() )
515
				printf ( "Ship ID: %s (Replace Existing Ship)\n", pXspFile->GetShipID().c_str() );
515
				printf ( "Ship ID: %s (Replace Existing Ship)\n", pXspFile->GetShipID().c_str() );
516
			else
516
			else
517
				printf ( "Ship ID: %s\n", pXspFile->GetShipID().c_str() );
517
				printf ( "Ship ID: %s\n", pXspFile->GetShipID().c_str() );
518
 
518
 
Line 617... Line 617...
617
 
617
 
618
		if ( pBaseFile->AnyDependacies() )
618
		if ( pBaseFile->AnyDependacies() )
619
		{
619
		{
620
			printf ( "Required Dependacies:\n" );
620
			printf ( "Required Dependacies:\n" );
621
			for ( SNeededLibrary *needed = pBaseFile->GetNeededLibraries()->First(); needed; needed = pBaseFile->GetNeededLibraries()->Next() )
621
			for ( SNeededLibrary *needed = pBaseFile->GetNeededLibraries()->First(); needed; needed = pBaseFile->GetNeededLibraries()->Next() )
622
				printf ( "\t%s by %s (Minimum Version=%s)\n", needed->sName.c_str(), needed->sAuthor.c_str(), needed->sMinVersion.c_str() );
622
				wprintf(L"\t%s by %s (Minimum Version=%hs)\n", needed->sName.c_str(), needed->sAuthor.c_str(), needed->sMinVersion.c_str() );
623
		}
623
		}
624
		if ( pBaseFile->easeOfUse() != -1 ) printf ( "Ease Of Use Rating: %d\n", pBaseFile->easeOfUse() );
624
		if ( pBaseFile->easeOfUse() != -1 ) printf ( "Ease Of Use Rating: %d\n", pBaseFile->easeOfUse() );
625
		if ( pBaseFile->gameChanging() != -1 ) printf ( "Game Changing Rating: %d\n", pBaseFile->gameChanging() );
625
		if ( pBaseFile->gameChanging() != -1 ) printf ( "Game Changing Rating: %d\n", pBaseFile->gameChanging() );
626
		if ( pBaseFile->recommended() != -1 ) printf ( "Recommendation Rating: %d\n", pBaseFile->recommended() );
626
		if ( pBaseFile->recommended() != -1 ) printf ( "Recommendation Rating: %d\n", pBaseFile->recommended() );
627
		if (pBaseFile->icon())
627
		if (pBaseFile->icon())
Line 1313... Line 1313...
1313
				if (!p)
1313
				if (!p)
1314
				{
1314
				{
1315
					printf("\tERROR!\n");
1315
					printf("\tERROR!\n");
1316
					continue;
1316
					continue;
1317
				}
1317
				}
1318
				printf("\tData extracted: %s %s by %s\n", p->name().c_str(), p->version().c_str(), p->author().c_str());
1318
				wprintf(L"\tData extracted: %s %hs by %s\n", p->name().c_str(), p->version().c_str(), p->author().c_str());
1319
				if (!p->creationDate().empty())
1319
				if (!p->creationDate().empty())
1320
					printf("\t\tCreated: %s\n", p->creationDate().c_str());
1320
					printf("\t\tCreated: %s\n", p->creationDate().c_str());
1321
				if(!p->description().empty())
1321
				if(!p->description().empty())
1322
					printf("\t\t%s\n", p->description().c_str());
1322
					printf("\t\t%s\n", p->description().c_str());
1323
 
1323