summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_csv
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_csv')
-rw-r--r--ftnoir_csv/csv.cpp6
-rw-r--r--ftnoir_csv/csv.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/ftnoir_csv/csv.cpp b/ftnoir_csv/csv.cpp
index 2b90788f..26b675fc 100644
--- a/ftnoir_csv/csv.cpp
+++ b/ftnoir_csv/csv.cpp
@@ -102,8 +102,10 @@ QStringList CSV::parseLine(QString line){
return list;
}
-void CSV::getGameData( const QString& gameID, bool& tirviews, bool& dummy, unsigned char* table, QString& gamename)
+void CSV::getGameData( const int id, unsigned char* table, QString& gamename)
{
+ QString gameID = QString::number(id);
+
/* zero table first, in case unknown game is connecting */
memset(table, 0, 8);
QStringList gameLine;
@@ -162,8 +164,6 @@ void CSV::getGameData( const QString& gameID, bool& tirviews, bool& dummy, unsig
table[i] = tmp[i];
qDebug() << gameID << "game-id" << gameLine.at(7);
gamename = gameLine.at(1);
- dummy = fuzz[1] & 0xf;
- tirviews = fuzz[1] & 0xf0;
file.close();
return;
}
diff --git a/ftnoir_csv/csv.h b/ftnoir_csv/csv.h
index af62ffbb..bfbece58 100644
--- a/ftnoir_csv/csv.h
+++ b/ftnoir_csv/csv.h
@@ -31,7 +31,7 @@ public:
static QStringList parseLine(QString line);
void setCodec(const char* codecName);
- static void getGameData( const QString& gameID, bool& tirviews, bool& dummy, unsigned char* table, QString& gamename);
+ static void getGameData(const int gameID, unsigned char* table, QString& gamename);
private:
QIODevice *m_device;
QTextCodec *m_codec;