From f0272ffb89f7197b706b395728c4f885f24c9b33 Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Thu, 7 Feb 2013 17:54:45 +0000 Subject: 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 --- FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'FTNoIR_Protocol_FT') 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) { -- cgit v1.2.3