diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2013-02-07 17:54:45 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2013-02-07 17:54:45 +0000 |
commit | f0272ffb89f7197b706b395728c4f885f24c9b33 (patch) | |
tree | b70779beeea4ecd5465ea2edef6ebd2203ee9467 | |
parent | dad3eab802158756b3ec6036a8325a6bd30a056d (diff) |
Bugfix: crash when CSV not found fixed.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@266 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
-rw-r--r-- | FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp index 7a1d898e..0491b9fa 100644 --- a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp +++ b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp @@ -117,11 +117,8 @@ QStringList gameLine; //
QFile file(QCoreApplication::applicationDirPath() + "/Settings/FaceTrackNoIR Supported Games.csv");
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)){
- qDebug()<< "cannot read file!";
-
- QString strError("Cannot load file: " + file.fileName());
+ QString strError( "Cannot load file: FaceTrackNoIR Supported Games.csv" );
sprintf_s(pMemData->ProgramName, 99, strError.toAscii());
- file.close();
//
// Return true anyway, because maybe it's V160 compatible.
@@ -278,7 +275,7 @@ PDWORD_PTR MsgResult = 0; // The game-ID was changed?
//
QString gameID = QString(pMemData->GameID);
-// QString gameID = QString("2304");
+ //QString gameID = QString("9999");
// qDebug() << "sendHeadposeToGame: gameID = " << gameID;
if (gameID.length() > 0) {
|