Skip to content

Commit

Permalink
Debug messages yaaaaaay
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongGino authored Mar 26, 2024
1 parent bbe5516 commit 7f182dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions qhookermain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,18 @@ void qhookerMain::GameSearching(QString input)
{
// Split the output in case of connecting mid-way.
#ifdef Q_OS_WIN
// Wendies wants to be a special boy and NOT READ CARRIAGE RETURNS MID-SESSION
buffer = input.split(QRegExp("[\r\n]"), Qt::SkipEmptyParts);
if(verbosity) {
qInfo() << "Input:";
qInfo() << input;
qInfo() << "Converted into the buffer as:";
qInfo() << buffer;
qInfo() << " - and then split as:";
for(uint8_t i = 0; i < input.length(); i++) {
qInfo() << buffer[i];
}
}
#else
buffer = input.split('\r', Qt::SkipEmptyParts);
#endif // Q_OS_WIN
Expand Down

0 comments on commit 7f182dd

Please sign in to comment.