mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
Fix older gcc nested pre-def with portable builds
This commit is contained in:
parent
60ed9fd1ff
commit
9dc77d674f
1 changed files with 2 additions and 3 deletions
|
|
@ -158,13 +158,12 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef PORTABLE_BUILD
|
#ifdef PORTABLE_BUILD
|
||||||
const QString dataDir = "data/";
|
const QString dataDir = "data/";
|
||||||
#else
|
#elif QT_VERSION < 0x050000
|
||||||
#if QT_VERSION < 0x050000
|
|
||||||
const QString dataDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
|
const QString dataDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
|
||||||
#else
|
#else
|
||||||
const QString dataDir = QStandardPaths::standardLocations(QStandardPaths::DataLocation).first();
|
const QString dataDir = QStandardPaths::standardLocations(QStandardPaths::DataLocation).first();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
if (!db->getLoadSuccess())
|
if (!db->getLoadSuccess())
|
||||||
if (!db->loadCardDatabase(dataDir + "/cards.xml"))
|
if (!db->loadCardDatabase(dataDir + "/cards.xml"))
|
||||||
settingsCache->setCardDatabasePath(dataDir + "/cards.xml");
|
settingsCache->setCardDatabasePath(dataDir + "/cards.xml");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue