aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-07-28 13:14:09 +0100
committerGitHub <noreply@github.com>2024-07-28 14:14:09 +0200
commitc4055830dd03ab3df11071bdf1f1f6410c79e055 (patch)
tree58e30eb3651fbd4d47385a401604ca35be1119d8
parent2cd78297274e1173d64f8f6e78383bfd6da88c7e (diff)
downloadNorthstarLauncher-c4055830dd03ab3df11071bdf1f1f6410c79e055.tar.gz
NorthstarLauncher-c4055830dd03ab3df11071bdf1f1f6410c79e055.zip
Fix logging sometimes not working (#754)v1.26.4-rc3v1.26.4
Revert #741 and remove log message since it's not a big deal
-rw-r--r--primedev/logging/logging.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/primedev/logging/logging.cpp b/primedev/logging/logging.cpp
index 4367b384..6d71eea0 100644
--- a/primedev/logging/logging.cpp
+++ b/primedev/logging/logging.cpp
@@ -124,11 +124,7 @@ void CustomSink::custom_log(const custom_log_msg& msg)
void InitialiseConsole()
{
- if (GetConsoleWindow() == NULL && AllocConsole() == FALSE)
- {
- std::cout << "[*] Failed to create a console window" << std::endl;
- }
- else
+ if (AllocConsole() != FALSE)
{
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);