diff options
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index a80649703..91133569d 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -174,6 +174,13 @@ static void OnStatusMessageReceived(const Network::StatusMessageEntry& msg) { | |||
| 174 | 174 | ||
| 175 | /// Application entry point | 175 | /// Application entry point |
| 176 | int main(int argc, char** argv) { | 176 | int main(int argc, char** argv) { |
| 177 | #ifdef _WIN32 | ||
| 178 | if (AttachConsole(ATTACH_PARENT_PROCESS)) { | ||
| 179 | freopen("CONOUT$", "wb", stdout); | ||
| 180 | freopen("CONOUT$", "wb", stderr); | ||
| 181 | } | ||
| 182 | #endif | ||
| 183 | |||
| 177 | Common::Log::Initialize(); | 184 | Common::Log::Initialize(); |
| 178 | Common::Log::SetColorConsoleBackendEnabled(true); | 185 | Common::Log::SetColorConsoleBackendEnabled(true); |
| 179 | Common::Log::Start(); | 186 | Common::Log::Start(); |