Subversion Repositories spk

Rev

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

Rev 203 Rev 204
Line 496... Line 496...
496
		wprintf(L"%hs 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
			wprintf(L"%hs Author: %s (%hs)\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
			wprintf(L"%hs 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() ) wprintf(L"%hs 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() )
506
			printf("All");
506
			printf("All");
Line 570... Line 570...
570
				for(auto itr = pXspFile->getCutData().begin(); itr != pXspFile->getCutData().end(); itr++)
570
				for(auto itr = pXspFile->getCutData().begin(); itr != pXspFile->getCutData().end(); itr++)
571
					printf("\t%s\n", (*itr)->str.c_str());
571
					printf("\t%s\n", (*itr)->str.c_str());
572
			}
572
			}
573
		}
573
		}
574
 
574
 
575
		if ( !pBaseFile->creationDate().empty() ) printf ( "Creation Date: %s\n", pBaseFile->creationDate().c_str() );
575
		if ( !pBaseFile->creationDate().empty() ) wprintf(L"Creation Date: %s\n", pBaseFile->creationDate().c_str() );
576
		if ( !pBaseFile->description().empty() ) printf ( "Description: %s\n", pBaseFile->description().c_str() );
576
		if ( !pBaseFile->description().empty() ) printf ( "Description: %s\n", pBaseFile->description().c_str() );
577
		if ( pSpkFile )
577
		if ( pSpkFile )
578
		{
578
		{
579
			if ( pSpkFile->IsLibrary() )
579
			if ( pSpkFile->IsLibrary() )
580
				printf ( "Script Type: Library\n" );
580
				printf ( "Script Type: Library\n" );
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
				wprintf(L"\t%s by %s (Minimum Version=%hs)\n", needed->sName.c_str(), needed->sAuthor.c_str(), needed->sMinVersion.c_str() );
622
				wprintf(L"\t%s by %s (Minimum Version=%s)\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
				wprintf(L"\tData extracted: %s %hs by %s\n", p->name().c_str(), p->version().c_str(), p->author().c_str());
1318
				wprintf(L"\tData extracted: %s %s 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
					wprintf(L"\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
 
1324
				filedata.pushBack(CPackages::FormatAvailablePackageData(p));
1324
				filedata.pushBack(CPackages::FormatAvailablePackageData(p));
1325
				delete p;
1325
				delete p;
Line 1525... Line 1525...
1525
			}
1525
			}
1526
			else
1526
			else
1527
				printf("Error! There was a problem writing the package\n");
1527
				printf("Error! There was a problem writing the package\n");
1528
		}
1528
		}
1529
 
1529
 
1530
		saveto = package->exportFilename().toWString();
1530
		saveto = package->exportFilename();
1531
		if ( !saveto.empty() ) {
1531
		if ( !saveto.empty() ) {
1532
			saveto = saveto.findReplace(L"$DEFAULTDIR", curDir + L"/");
1532
			saveto = saveto.findReplace(L"$DEFAULTDIR", curDir + L"/");
1533
			saveto = saveto.findReplace(L"$PATH", curDir);
1533
			saveto = saveto.findReplace(L"$PATH", curDir);
1534
			saveto = saveto.findReplace(L"\\", L"/");
1534
			saveto = saveto.findReplace(L"\\", L"/");
1535
			saveto = saveto.findReplace(L"//", L"/");
1535
			saveto = saveto.findReplace(L"//", L"/");