| Line 1878... |
Line 1878... |
| 1878 |
{
|
1878 |
{
|
| 1879 |
Utils::WString values(L"Name: ");
|
1879 |
Utils::WString values(L"Name: ");
|
| 1880 |
values += this->name() + L"\n";
|
1880 |
values += this->name() + L"\n";
|
| 1881 |
values += L"Author: " + this->author() + L"\n";
|
1881 |
values += L"Author: " + this->author() + L"\n";
|
| 1882 |
values += L"Version: " + this->version() + L"\n";
|
1882 |
values += L"Version: " + this->version() + L"\n";
|
| 1883 |
if ( !this->creationDate().empty() )values += L"Date: " + this->creationDate() + L"\n";
|
1883 |
if ( !this->creationDate().empty() )values += L"Date: " + this->creationDate() + L"\n";
|
| 1884 |
if ( !this->webAddress().empty() ) values += L"WebAddress: " + this->webAddress().toWString() + L"\n";
|
1884 |
if ( !this->webAddress().empty() ) values += L"WebAddress: " + this->webAddress() + L"\n";
|
| 1885 |
if ( !this->webSite().empty() ) values += L"WebSite: " + this->webSite().toWString() + L"\n";
|
1885 |
if ( !this->webSite().empty() ) values += L"WebSite: " + this->webSite() + L"\n";
|
| 1886 |
if ( !this->email().empty() ) values += L"Email: " + this->email().toWString() + L"\n";
|
1886 |
if ( !this->email().empty() ) values += L"Email: " + this->email() + L"\n";
|
| 1887 |
if ( !this->forumLink().empty() ) values += L"ForumLink: " + this->forumLink().toWString() + L"\n";
|
1887 |
if ( !this->forumLink().empty() ) values += L"ForumLink: " + this->forumLink() + L"\n";
|
| 1888 |
|
1888 |
|
| 1889 |
for(auto itr = _lMirrors.begin(); itr != _lMirrors.end(); itr++)
|
1889 |
for(auto itr = _lMirrors.begin(); itr != _lMirrors.end(); itr++)
|
| 1890 |
values += Utils::WString(L"WebMirror: ") + (*itr)->str.toWString() + L"\n";
|
1890 |
values += Utils::WString(L"WebMirror: ") + (*itr)->str.toWString() + L"\n";
|
| 1891 |
if ( !this->description().empty() ) {
|
1891 |
if ( !this->description().empty() ) {
|
| 1892 |
Utils::WString desc = this->description().toWString();
|
1892 |
Utils::WString desc = this->description();
|
| 1893 |
desc = desc.findReplace(L"<newline>", L"<br>");
|
1893 |
desc = desc.findReplace(L"<newline>", L"<br>");
|
| 1894 |
desc = desc.findReplace(L"\n", "L<br>");
|
1894 |
desc = desc.findReplace(L"\n", "L<br>");
|
| 1895 |
desc.remove(L'\r');
|
1895 |
desc.remove(L'\r');
|
| 1896 |
values += L"Desc: " + desc + L"\n";
|
1896 |
values += L"Desc: " + desc + L"\n";
|
| 1897 |
}
|
1897 |
}
|
| Line 1913... |
Line 1913... |
| 1913 |
case 0: textStart = L"Uninstall"; text = this->uninstallText(); break;
|
1913 |
case 0: textStart = L"Uninstall"; text = this->uninstallText(); break;
|
| 1914 |
case 1: textStart = L"Install"; text = this->installText(); break;
|
1914 |
case 1: textStart = L"Install"; text = this->installText(); break;
|
| 1915 |
}
|
1915 |
}
|
| 1916 |
for ( unsigned int i = 0; i < text->count(); i++ ) {
|
1916 |
for ( unsigned int i = 0; i < text->count(); i++ ) {
|
| 1917 |
int iLang = text->language(i);
|
1917 |
int iLang = text->language(i);
|
| 1918 |
if ( !text->getBefore(iLang).empty() ) values += textStart + L"Before: " + (long)iLang + L"|" + text->getBefore(iLang).toWString() + L"\n";
|
1918 |
if ( !text->getBefore(iLang).empty() ) values += textStart + L"Before: " + (long)iLang + L"|" + text->getBefore(iLang) + L"\n";
|
| 1919 |
if ( !text->getAfter(iLang).empty() ) values += textStart + L"After: " + (long)iLang + L"|" + text->getAfter(iLang).toWString() + L"\n";
|
1919 |
if ( !text->getAfter(iLang).empty() ) values += textStart + L"After: " + (long)iLang + L"|" + text->getAfter(iLang) + L"\n";
|
| 1920 |
}
|
1920 |
}
|
| 1921 |
}
|
1921 |
}
|
| 1922 |
|
1922 |
|
| 1923 |
values += Utils::WString(L"GameChanging: ") + (long)gameChanging() + L"\n";
|
1923 |
values += Utils::WString(L"GameChanging: ") + (long)gameChanging() + L"\n";
|
| 1924 |
values += Utils::WString(L"EaseOfUse: ") + (long)easeOfUse() + L"\n";
|
1924 |
values += Utils::WString(L"EaseOfUse: ") + (long)easeOfUse() + L"\n";
|
| Line 2450... |
Line 2450... |
| 2450 |
list->pushBack("");
|
2450 |
list->pushBack("");
|
| 2451 |
}
|
2451 |
}
|
| 2452 |
|
2452 |
|
| 2453 |
if ( !this->description().empty() ) {
|
2453 |
if ( !this->description().empty() ) {
|
| 2454 |
list->pushBack("# The description of the script, displays when installing");
|
2454 |
list->pushBack("# The description of the script, displays when installing");
|
| 2455 |
list->pushBack("Description: " + this->description());
|
2455 |
list->pushBack("Description: " + this->description().toString());
|
| 2456 |
list->pushBack("");
|
2456 |
list->pushBack("");
|
| 2457 |
}
|
2457 |
}
|
| 2458 |
|
2458 |
|
| 2459 |
if ( !this->webSite().empty() ) {
|
2459 |
if ( !this->webSite().empty() ) {
|
| 2460 |
list->pushBack("# A link to the website for the script, ie for an online help page");
|
2460 |
list->pushBack("# A link to the website for the script, ie for an online help page");
|
| 2461 |
list->pushBack("WebSite: " + this->webSite());
|
2461 |
list->pushBack("WebSite: " + this->webSite().toString());
|
| 2462 |
list->pushBack("");
|
2462 |
list->pushBack("");
|
| 2463 |
}
|
2463 |
}
|
| 2464 |
|
2464 |
|
| 2465 |
if ( !this->forumLink().empty() ) {
|
2465 |
if ( !this->forumLink().empty() ) {
|
| 2466 |
list->pushBack("# A direct link to the thread in the egosoft forum");
|
2466 |
list->pushBack("# A direct link to the thread in the egosoft forum");
|
| 2467 |
list->pushBack("ForumLink: " + this->forumLink());
|
2467 |
list->pushBack("ForumLink: " + this->forumLink().toString());
|
| 2468 |
list->pushBack("");
|
2468 |
list->pushBack("");
|
| 2469 |
}
|
2469 |
}
|
| 2470 |
|
2470 |
|
| 2471 |
if ( !this->webAddress().empty() ) {
|
2471 |
if ( !this->webAddress().empty() ) {
|
| 2472 |
list->pushBack("# A link to the address for the update file");
|
2472 |
list->pushBack("# A link to the address for the update file");
|
| 2473 |
list->pushBack("WebAddress: " + this->webAddress());
|
2473 |
list->pushBack("WebAddress: " + this->webAddress().toString());
|
| 2474 |
list->pushBack("");
|
2474 |
list->pushBack("");
|
| 2475 |
}
|
2475 |
}
|
| 2476 |
|
2476 |
|
| 2477 |
if ( !this->email().empty() ) {
|
2477 |
if ( !this->email().empty() ) {
|
| 2478 |
list->pushBack("# The email address of the author, to allow users to contract if needed");
|
2478 |
list->pushBack("# The email address of the author, to allow users to contract if needed");
|
| 2479 |
list->pushBack("Email: " + this->email());
|
2479 |
list->pushBack("Email: " + this->email().toString());
|
| 2480 |
list->pushBack("");
|
2480 |
list->pushBack("");
|
| 2481 |
}
|
2481 |
}
|
| 2482 |
|
2482 |
|
| 2483 |
if (_lMirrors.size())
|
2483 |
if (_lMirrors.size())
|
| 2484 |
{
|
2484 |
{
|
| Line 2517... |
Line 2517... |
| 2517 |
list->pushBack((Utils::WString("ScriptName: ") + (long)(*itr)->iLanguage + L" " + (*itr)->sName).toString());
|
2517 |
list->pushBack((Utils::WString("ScriptName: ") + (long)(*itr)->iLanguage + L" " + (*itr)->sName).toString());
|
| 2518 |
list->pushBack("");
|
2518 |
list->pushBack("");
|
| 2519 |
}
|
2519 |
}
|
| 2520 |
|
2520 |
|
| 2521 |
for ( int j = 0; j < 2; j++ ) {
|
2521 |
for ( int j = 0; j < 2; j++ ) {
|
| 2522 |
Utils::String installText = (j == 0) ? "Install" : "Uninstall";
|
2522 |
Utils::WString installText = (j == 0) ? L"Install" : L"Uninstall";
|
| 2523 |
const CInstallText *pText = (j == 0) ? this->installText() : this->uninstallText();
|
2523 |
const CInstallText *pText = (j == 0) ? this->installText() : this->uninstallText();
|
| 2524 |
if ( pText->any() )
|
2524 |
if ( pText->any() )
|
| 2525 |
{
|
2525 |
{
|
| 2526 |
list->pushBack("# " + installText + " Texts, display text before and/or after " + installText + "ing to inform the use of special conditions");
|
2526 |
list->pushBack((L"# " + installText + L" Texts, display text before and/or after " + installText + L"ing to inform the use of special conditions").toString());
|
| 2527 |
for ( unsigned int i = 0; i < pText->count(); i++ ) {
|
2527 |
for ( unsigned int i = 0; i < pText->count(); i++ ) {
|
| 2528 |
long iLang = pText->language(i);
|
2528 |
long iLang = pText->language(i);
|
| 2529 |
if ( !pText->getBefore(iLang).empty() ) list->pushBack(installText + "Before: " + iLang + " " + pText->getBefore(iLang));
|
2529 |
if ( !pText->getBefore(iLang).empty() ) list->pushBack((installText + "Before: " + iLang + L" " + pText->getBefore(iLang)).toString());
|
| 2530 |
if ( !pText->getAfter(iLang).empty() ) list->pushBack(installText + "After: " + iLang + " " + pText->getAfter(iLang));
|
2530 |
if ( !pText->getAfter(iLang).empty() ) list->pushBack((installText + "After: " + iLang + L" " + pText->getAfter(iLang)).toString());
|
| 2531 |
}
|
2531 |
}
|
| 2532 |
list->pushBack("");
|
2532 |
list->pushBack("");
|
| 2533 |
}
|
2533 |
}
|
| 2534 |
}
|
2534 |
}
|
| 2535 |
|
2535 |
|