summaryrefslogtreecommitdiffhomepage
path: root/csv/csv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'csv/csv.cpp')
-rw-r--r--csv/csv.cpp11
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);