diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-18 08:31:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-18 08:32:21 +0200 |
commit | 83bc8af3aae80723c18fbcd905a5347347314546 (patch) | |
tree | ea4ec35121db2c04c71e4489666eec178fb234f7 /csv | |
parent | e07f488256bbbc49b24fd85057c9b5ea9fb9718e (diff) |
csv: omg #385
Diffstat (limited to 'csv')
-rw-r--r-- | csv/csv.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/csv/csv.cpp b/csv/csv.cpp index 14bcb957..1c4a3bb1 100644 --- a/csv/csv.cpp +++ b/csv/csv.cpp @@ -98,14 +98,17 @@ bool CSV::getGameData(int id, unsigned char* table, QString& gamename) QString id_str(QString::number(id)); - static const QString libexec_path(QCoreApplication::applicationDirPath() + - QString(OPENTRACK_LIBRARY_PATH) + - QString("settings/facetracknoir supported games.csv")); + static const QString csv_path(QCoreApplication::applicationDirPath() + + QString(OPENTRACK_LIBRARY_PATH) + + QString("settings/facetracknoir supported games.csv")); - QFile file(QCoreApplication::applicationDirPath() + libexec_path); + QFile file(csv_path); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) + { + qDebug() << "csv: can't open game list for freetrack protocol!"; return false; + } CSV csv(&file); |