1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Support separate Splash directory, found in some installation media cabinets

This commit is contained in:
pvdk 2014-02-25 17:23:26 +01:00
parent 3792b301e9
commit d30c4edb14

View File

@ -587,6 +587,14 @@ bool Wizard::UnshieldWorker::installComponent(Component component)
if (component == Wizard::Component_Morrowind)
{
// Some installations have a separate Splash directory
QFileInfo splash(temp.absoluteFilePath(QLatin1String("Splash")));
if (splash.exists()) {
emit textChanged(tr("Extracting: Splash directory"));
copyDirectory(splash.absoluteFilePath(), getPath() + QDir::separator() + QLatin1String("Splash"));
}
// Copy Morrowind configuration file
QString iniPath(temp.absoluteFilePath(QLatin1String("App Executables")));
iniPath.append(QDir::separator() + QLatin1String("Morrowind.ini"));