Line 520... |
Line 520... |
520 |
{
|
520 |
{
|
521 |
printf ( "Add To Shipyards:\n" );
|
521 |
printf ( "Add To Shipyards:\n" );
|
522 |
for ( int i = 1; i <= GetMaxShipyards(); i *= 2 )
|
522 |
for ( int i = 1; i <= GetMaxShipyards(); i *= 2 )
|
523 |
{
|
523 |
{
|
524 |
if ( pXspFile->IsShipyard(i) )
|
524 |
if ( pXspFile->IsShipyard(i) )
|
525 |
printf("\t%s\n", GetShipyardName(i).c_str());
|
525 |
wprintf(L"\t%s\n", GetShipyardName(i).c_str());
|
526 |
}
|
526 |
}
|
527 |
}
|
527 |
}
|
528 |
|
528 |
|
529 |
for ( SWeaponMask *text = pXspFile->GetLaserMasks()->First(); text; text = pXspFile->GetLaserMasks()->Next() )
|
529 |
for ( SWeaponMask *text = pXspFile->GetLaserMasks()->First(); text; text = pXspFile->GetLaserMasks()->Next() )
|
530 |
printf ( "Laser Mask, Game: %s, Mask: %d\n", GetGameName(text->iGame).c_str(), text->iMask);
|
530 |
printf ( "Laser Mask, Game: %s, Mask: %d\n", GetGameName(text->iGame).c_str(), text->iMask);
|
Line 538... |
Line 538... |
538 |
{
|
538 |
{
|
539 |
for ( SText *text = pXspFile->GetTexts()->First(); text; text = pXspFile->GetTexts()->Next() )
|
539 |
for ( SText *text = pXspFile->GetTexts()->First(); text; text = pXspFile->GetTexts()->Next() )
|
540 |
{
|
540 |
{
|
541 |
printf("Ship Text, Language: %d\n", text->iId);
|
541 |
printf("Ship Text, Language: %d\n", text->iId);
|
542 |
if ( !text->sName.empty() )
|
542 |
if ( !text->sName.empty() )
|
543 |
printf("\tName: %s\n", text->sName.c_str());
|
543 |
wprintf(L"\tName: %s\n", text->sName.c_str());
|
544 |
if ( !text->sDesc.empty() )
|
544 |
if ( !text->sDesc.empty() )
|
545 |
printf("\tDescription: %s\n", text->sDesc.c_str());
|
545 |
wprintf(L"\tDescription: %s\n", text->sDesc.c_str());
|
546 |
}
|
546 |
}
|
547 |
}
|
547 |
}
|
548 |
|
548 |
|
549 |
if ( pXspFile->AnyComponents() )
|
549 |
if ( pXspFile->AnyComponents() )
|
550 |
{
|
550 |
{
|
551 |
printf ( "Component Entries:\n" );
|
551 |
printf ( "Component Entries:\n" );
|
552 |
for ( SComponent *c = pXspFile->GetComponents()->First(); c; c = pXspFile->GetComponents()->Next() )
|
552 |
for ( SComponent *c = pXspFile->GetComponents()->First(); c; c = pXspFile->GetComponents()->Next() )
|
553 |
printf ( "\t%s\n\t\t%s\n\t\t\t%s\n", c->sSection.c_str(), c->sSection2.c_str(), c->sData.c_str());
|
553 |
wprintf(L"\t%s\n\t\t%s\n\t\t\t%s\n", c->sSection.c_str(), c->sSection2.c_str(), c->sData.c_str());
|
554 |
}
|
554 |
}
|
555 |
if ( pXspFile->AnyDummies() )
|
555 |
if ( pXspFile->AnyDummies() )
|
556 |
{
|
556 |
{
|
557 |
printf ( "Dummy Entries:\n" );
|
557 |
printf ( "Dummy Entries:\n" );
|
558 |
for ( SDummy *d = pXspFile->GetDummies()->First(); d; d = pXspFile->GetDummies()->Next() )
|
558 |
for ( SDummy *d = pXspFile->GetDummies()->First(); d; d = pXspFile->GetDummies()->Next() )
|
559 |
printf ( "\t%s\n\t\t%s\n", d->sSection.c_str(), d->sData.c_str());
|
559 |
wprintf(L"\t%s\n\t\t%s\n", d->sSection.c_str(), d->sData.c_str());
|
560 |
}
|
560 |
}
|
561 |
if ( pXspFile->AnyCockpits() )
|
561 |
if ( pXspFile->AnyCockpits() )
|
562 |
{
|
562 |
{
|
563 |
printf ( "Cockpit Entries:\n" );
|
563 |
printf ( "Cockpit Entries:\n" );
|
564 |
for ( SCockpit *c = pXspFile->GetCockpits()->First(); c; c = pXspFile->GetCockpits()->Next() )
|
564 |
for ( SCockpit *c = pXspFile->GetCockpits()->First(); c; c = pXspFile->GetCockpits()->Next() )
|
565 |
printf("\t%s\n", c->sCockpit.c_str());
|
565 |
wprintf(L"\t%s\n", c->sCockpit.c_str());
|
566 |
}
|
566 |
}
|
567 |
if ( pXspFile->anyCutData() )
|
567 |
if ( pXspFile->anyCutData() )
|
568 |
{
|
568 |
{
|
569 |
printf ( "CutData Entries [%d]:\n", pXspFile->getCutData().size() );
|
569 |
printf ( "CutData Entries [%d]:\n", pXspFile->getCutData().size() );
|
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 |
wprintf(L"\t%s\n", (*itr)->str.c_str());
|
572 |
}
|
572 |
}
|
573 |
}
|
573 |
}
|
574 |
|
574 |
|
575 |
if ( !pBaseFile->creationDate().empty() ) wprintf(L"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() ) wprintf(L"Description: %s\n", pBaseFile->description().c_str() );
|
576 |
if ( !pBaseFile->description().empty() ) wprintf(L"Description: %s\n", pBaseFile->description().c_str() );
|