From 59d0e4aa21097133cde0a49e402b1bcc3d62fee1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 1 May 2020 00:58:38 +1000 Subject: [PATCH] SDL: Switch to Windows instead of Console subsystem --- src/duckstation-sdl/duckstation-sdl.vcxproj | 32 ++++++++++----------- src/duckstation-sdl/main.cpp | 18 ------------ 2 files changed, 16 insertions(+), 34 deletions(-) diff --git a/src/duckstation-sdl/duckstation-sdl.vcxproj b/src/duckstation-sdl/duckstation-sdl.vcxproj index f0fd4e9c2..d555ae760 100644 --- a/src/duckstation-sdl/duckstation-sdl.vcxproj +++ b/src/duckstation-sdl/duckstation-sdl.vcxproj @@ -227,9 +227,9 @@ true - Console + Windows true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) @@ -248,9 +248,9 @@ true - Console + Windows true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) @@ -272,9 +272,9 @@ true - Console + Windows true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) @@ -296,9 +296,9 @@ true - Console + Windows true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) @@ -316,11 +316,11 @@ true - Console + Windows true true true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) Default @@ -340,11 +340,11 @@ true - Console + Windows true true true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) UseLinkTimeCodeGeneration @@ -363,11 +363,11 @@ true - Console + Windows true true true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) Default @@ -387,11 +387,11 @@ true - Console + Windows true true true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) + SDL2.lib;SDL2main.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies) UseLinkTimeCodeGeneration diff --git a/src/duckstation-sdl/main.cpp b/src/duckstation-sdl/main.cpp index 5cee36f6a..1f48cf920 100644 --- a/src/duckstation-sdl/main.cpp +++ b/src/duckstation-sdl/main.cpp @@ -7,26 +7,8 @@ #include #include -#undef main int main(int argc, char* argv[]) { - // set log flags -#ifndef _DEBUG - const LOGLEVEL level = LOGLEVEL_INFO; - // const LOGLEVEL level = LOGLEVEL_DEV; - // const LOGLEVEL level = LOGLEVEL_PROFILE; - Log::SetConsoleOutputParams(true, nullptr, level); - Log::SetFilterLevel(level); -#else - Log::SetConsoleOutputParams(true, nullptr, LOGLEVEL_DEBUG); - Log::SetConsoleOutputParams(true, "Pad DigitalController MemoryCard SPU", LOGLEVEL_DEBUG); - // Log::SetConsoleOutputParams(true, "GPU GPU_HW_OpenGL SPU Pad DigitalController", LOGLEVEL_DEBUG); - // Log::SetConsoleOutputParams(true, "GPU GPU_HW_OpenGL Pad DigitalController MemoryCard InterruptController SPU - // MDEC", LOGLEVEL_DEBUG); g_pLog->SetFilterLevel(LOGLEVEL_TRACE); - Log::SetFilterLevel(LOGLEVEL_DEBUG); - // Log::SetFilterLevel(LOGLEVEL_DEV); -#endif - FrontendCommon::EnsureSDLInitialized(); std::unique_ptr host_interface = SDLHostInterface::Create();