From 83bc8af3aae80723c18fbcd905a5347347314546 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Jul 2016 08:31:56 +0200 Subject: csv: omg #385 --- csv/csv.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'csv') 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); -- cgit v1.2.3