Auto-detect the actual Morrowind assets path (Fixes #4336)

pull/400/head
Capostrophic 7 years ago committed by GitHub
parent 9b8c56761b
commit 5a3086b0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,10 +62,11 @@ Wizard::MainWizard::MainWizard(QWidget *parent) :
setupInstallations();
setupPages();
const boost::filesystem::path& installedPath = mCfgMgr.getInstallPath();
if (!installedPath.empty())
const boost::filesystem::path& installationPath = mCfgMgr.getInstallPath();
if (!installationPath.empty())
{
addInstallation(toQString(installedPath));
const boost::filesystem::path& dataPath = installationPath / "Data Files";
addInstallation(toQString(dataPath));
}
}

Loading…
Cancel
Save