| Line 2758... |
Line 2758... |
| 2758 |
if (this->GetType() == TYPE_XSP)
|
2758 |
if (this->GetType() == TYPE_XSP)
|
| 2759 |
filename = filename.findReplace(L"$AUTOSAVE", L"$NAME-V$VERSION-$CDATE.xsp");
|
2759 |
filename = filename.findReplace(L"$AUTOSAVE", L"$NAME-V$VERSION-$CDATE.xsp");
|
| 2760 |
else
|
2760 |
else
|
| 2761 |
filename = filename.findReplace(L"$AUTOSAVE", L"$NAME-V$VERSION-$CDATE.spk");
|
2761 |
filename = filename.findReplace(L"$AUTOSAVE", L"$NAME-V$VERSION-$CDATE.spk");
|
| 2762 |
}
|
2762 |
}
|
| 2763 |
filename = filename.findReplace("L$NAME", this->name().remove(' '));
|
2763 |
filename = filename.findReplace(L"$NAME", this->name().remove(' ').toWString());
|
| 2764 |
filename = filename.findReplace("L$AUTHOR", this->author().remove(' '));
|
2764 |
filename = filename.findReplace(L"$AUTHOR", this->author().remove(' ').toWString());
|
| 2765 |
filename = filename.findReplace("L$DATE", cdate);
|
2765 |
filename = filename.findReplace(L"$DATE", cdate);
|
| 2766 |
filename = filename.findReplace("L$CDATE", cdate);
|
2766 |
filename = filename.findReplace(L"$CDATE", cdate);
|
| 2767 |
filename = filename.findReplace("L$VERSION", this->version());
|
2767 |
filename = filename.findReplace(L"$VERSION", this->version());
|
| 2768 |
|
2768 |
|
| 2769 |
return filename;
|
2769 |
return filename;
|
| 2770 |
}
|
2770 |
}
|
| 2771 |
bool CBaseFile::loadPackageData(const Utils::WString &sFirst, const Utils::WString &sRest, const Utils::WString &sMainGame, Utils::WStringList &otherGames, Utils::WStringList &gameAddons, CProgressInfo *progress)
|
2771 |
bool CBaseFile::loadPackageData(const Utils::WString &sFirst, const Utils::WString &sRest, const Utils::WString &sMainGame, Utils::WStringList &otherGames, Utils::WStringList &gameAddons, CProgressInfo *progress)
|
| 2772 |
{
|
2772 |
{
|