diff options
| author | Tannin <devnull@localhost> | 2013-04-12 15:31:47 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-04-12 15:31:47 +0200 |
| commit | 4fbfc9aa54ed4499f54eb7b3cd942337f6b49e58 (patch) | |
| tree | 43008c44a7adf429abc45d5a81537a118fcf6fa7 /src/profile.cpp | |
| parent | a47d9717884953b18b4b29e596d3e5a7d766e56e (diff) | |
- multi-selection in category window
- profile loading is now slightly more forgiving
Diffstat (limited to 'src/profile.cpp')
| -rw-r--r-- | src/profile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profile.cpp b/src/profile.cpp index 204a71aa..24c6d943 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -84,7 +84,7 @@ Profile::Profile(const QDir& directory) { initTimer(); if (!QFile::exists(m_Directory.filePath("modlist.txt"))) { - throw std::runtime_error(QObject::tr("modlist.txt missing").toUtf8().constData()); + qWarning("missing modlist.txt in %s", qPrintable(directory.path())); } GameInfo::instance().repairProfile(ToWString(m_Directory.absolutePath())); @@ -185,7 +185,7 @@ void Profile::createTweakedIniFile() { QString tweakedIni = m_Directory.absoluteFilePath("initweaks.ini"); - if (!shellDelete(QStringList(tweakedIni), NULL)) { + if (QFile::exists(tweakedIni) && !shellDelete(QStringList(tweakedIni), NULL)) { reportError(tr("failed to update tweaked ini file, wrong settings may be used: %1").arg(windowsErrorString(::GetLastError()))); return; } |
