mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
allow servatrice to exit early based on commandline options (#4504)
This commit is contained in:
parent
07e6aadbbe
commit
a9f2fc427b
4 changed files with 17 additions and 9 deletions
|
|
@ -23,7 +23,7 @@ SettingsCache::SettingsCache(const QString &fileName, QSettings::Format format,
|
|||
}
|
||||
}
|
||||
|
||||
QString SettingsCache::guessConfigurationPath(QString &specificPath)
|
||||
QString SettingsCache::guessConfigurationPath()
|
||||
{
|
||||
const QString fileName = "servatrice.ini";
|
||||
if (QFile::exists(qApp->applicationDirPath() + "/portable.dat")) {
|
||||
|
|
@ -32,9 +32,6 @@ QString SettingsCache::guessConfigurationPath(QString &specificPath)
|
|||
}
|
||||
|
||||
QString guessFileName;
|
||||
// specific path
|
||||
if (!specificPath.isEmpty() && QFile::exists(specificPath))
|
||||
return specificPath;
|
||||
|
||||
// application directory path
|
||||
guessFileName = QCoreApplication::applicationDirPath() + "/" + fileName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue