Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Nov 8, 2024
1 parent b683f79 commit 0c19cda
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions AudioManager/AudioManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void AudioManager::setAudioDevice(QString ID)
int maxRetries = 10;
int retryCount = 0;
std::string result;
qDebug() << "Will try to set output to:" << ID;

while (retryCount < maxRetries) {
// Correctly add double quotes around the ID, without adding escape characters
Expand Down
6 changes: 0 additions & 6 deletions BigPictureTV/BigPictureTV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ void BigPictureTV::loadSettings()
disable_nightlight_action = settings.value("disable_nightlight_action").toBool();
target_window_mode = settings.value("target_window_mode").toInt();
custom_window_title = settings.value("custom_window_title").toString();

qDebug() << "Audio configuration:";
qDebug() << "";
qDebug() << "Switch audio:" << !disable_audio_switch;
qDebug() << "Gamemode audio device:" << gamemode_audio_device;
qDebug() << "Desktop audio device:" << desktop_audio_device;
}

void BigPictureTV::showSettings()
Expand Down
7 changes: 0 additions & 7 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);

if (AttachConsole(ATTACH_PARENT_PROCESS)) {
// Redirect qDebug() and other output to the console
FILE *stream;
freopen_s(&stream, "CONOUT$", "w", stdout);
freopen_s(&stream, "CONOUT$", "w", stderr);
}

QString serverName = "BigPictureTVUniqueIdentifier";
QLocalServer localServer;
QLocalSocket localSocket;
Expand Down

0 comments on commit 0c19cda

Please sign in to comment.