diff --git a/src/gui/qt/mainwindow/log/log.cpp b/src/gui/qt/mainwindow/log/log.cpp index e90b5428..a953c86f 100644 --- a/src/gui/qt/mainwindow/log/log.cpp +++ b/src/gui/qt/mainwindow/log/log.cpp @@ -30,7 +30,9 @@ using namespace std; Log::Log(mainWindowImpl* w, ConfigFile *c) : myW(w), myConfig(c), myLogDir(0), myLogFile(0) { myW->setLog(this); - + + myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str()); + connect(this, SIGNAL(signalLogPlayerActionMsg(QString, int, int)), this, SLOT(logPlayerActionMsg(QString, int, int))); connect(this, SIGNAL(signalLogNewGameHandMsg(int, int)), this, SLOT(logNewGameHandMsg(int, int))); connect(this, SIGNAL(signalLogPlayerWinsMsg(int, int)), this, SLOT(logPlayerWinsMsg(int, int))); @@ -51,7 +53,7 @@ Log::Log(mainWindowImpl* w, ConfigFile *c) : myW(w), myConfig(c), myLogDir(0), m myLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+QDateTime::currentDateTime().toString("yyyy-MM-dd_hh.mm.ss")+".html"); //Logo-Pixmap extrahieren - QPixmap::QPixmap(":graphics/resources/graphics/logoChip3D.png").save(myLogDir->absolutePath()+"/logo.png"); + QPixmap::QPixmap(myAppDataPath +"gfx/gui/misc/logoChip3D.png").save(myLogDir->absolutePath()+"/logo.png"); // myW->textBrowser_Log->append(myLogFile->fileName()); @@ -146,6 +148,7 @@ void Log::logPlayerActionMsg(QString msg, int action, int setValue) { void Log::logNewGameHandMsg(int gameID, int handID) { int i, j ,k; + HandInterface *currentHand = myW->getSession().getCurrentGame()->getCurrentHand(); myW->textBrowser_Log->append("## Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" ##"); @@ -153,11 +156,11 @@ void Log::logNewGameHandMsg(int gameID, int handID) { //if write logfiles is enabled logFileStreamString += "

####################   Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+"   ####################
"; + logFileStreamString += "BLIND LEVEL: "+QString::number(currentHand->getSmallBlind())+"$/"+QString::number(currentHand->getSmallBlind()*2)+"$
"; logFileStreamString += "CASH: "; //Aktive Spieler zählen int activePlayersCounter = 0; - HandInterface *currentHand = myW->getSession().getCurrentGame()->getCurrentHand(); for (k=0; kgetPlayerArray()[k]->getMyActiveStatus() == 1) activePlayersCounter++; } diff --git a/src/gui/qt/mainwindow/log/log.h b/src/gui/qt/mainwindow/log/log.h index 4af37746..fd4b0203 100644 --- a/src/gui/qt/mainwindow/log/log.h +++ b/src/gui/qt/mainwindow/log/log.h @@ -75,6 +75,7 @@ private: QDir *myLogDir; QFile *myLogFile; QString logFileStreamString; + QString myAppDataPath; friend class GuiWrapper; }; diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp index f5bc0fbb..c3532277 100644 --- a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp +++ b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp @@ -490,4 +490,4 @@ void settingsDialogImpl::callNetManualBlindsOrderDialog() { myNetAfterMBAlwaysRaiseValue = myManualBlindsOrderDialog->spinBox_alwaysRaiseValue->value(); myNetAfterMBStayAtLastBlind = myManualBlindsOrderDialog->radioButton_stayAtLastBlind->isChecked(); } -} \ No newline at end of file +}