From ffdd79df3634a379cb94789e036434b80f16f22a Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sun, 11 Aug 2013 16:30:19 +0200 Subject: [PATCH] Move VideoBackendBase from Common to VideoCommon --- Source/Core/Common/CMakeLists.txt | 1 - Source/Core/Common/Common.vcxproj | 4 +--- Source/Core/Common/Common.vcxproj.filters | 4 +--- Source/Core/VideoCommon/CMakeLists.txt | 1 + Source/Core/{Common => VideoCommon}/Src/VideoBackendBase.cpp | 2 ++ Source/Core/{Common => VideoCommon}/Src/VideoBackendBase.h | 0 Source/Core/VideoCommon/VideoCommon.vcxproj | 2 ++ Source/Core/VideoCommon/VideoCommon.vcxproj.filters | 2 ++ 8 files changed, 9 insertions(+), 7 deletions(-) rename Source/Core/{Common => VideoCommon}/Src/VideoBackendBase.cpp (99%) rename Source/Core/{Common => VideoCommon}/Src/VideoBackendBase.h (100%) diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index 480a08a0fc..0a1a26e530 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -20,7 +20,6 @@ set(SRCS Src/BreakPoints.cpp Src/Thread.cpp Src/Timer.cpp Src/Version.cpp - Src/VideoBackendBase.cpp Src/x64ABI.cpp Src/x64Analyzer.cpp Src/x64Emitter.cpp diff --git a/Source/Core/Common/Common.vcxproj b/Source/Core/Common/Common.vcxproj index 822fafe74b..2982a5c720 100644 --- a/Source/Core/Common/Common.vcxproj +++ b/Source/Core/Common/Common.vcxproj @@ -195,7 +195,6 @@ - @@ -250,7 +249,6 @@ - @@ -261,4 +259,4 @@ - \ No newline at end of file + diff --git a/Source/Core/Common/Common.vcxproj.filters b/Source/Core/Common/Common.vcxproj.filters index d427b70cdd..ae434219fd 100644 --- a/Source/Core/Common/Common.vcxproj.filters +++ b/Source/Core/Common/Common.vcxproj.filters @@ -23,7 +23,6 @@ - @@ -92,7 +91,6 @@ - @@ -134,4 +132,4 @@ {f078f36e-a0ff-4cd0-95f8-476100d68e68} - \ No newline at end of file + diff --git a/Source/Core/VideoCommon/CMakeLists.txt b/Source/Core/VideoCommon/CMakeLists.txt index a4dad8293b..8503377779 100644 --- a/Source/Core/VideoCommon/CMakeLists.txt +++ b/Source/Core/VideoCommon/CMakeLists.txt @@ -33,6 +33,7 @@ set(SRCS Src/BPFunctions.cpp Src/VertexManagerBase.cpp Src/VertexShaderGen.cpp Src/VertexShaderManager.cpp + Src/VideoBackendBase.cpp Src/VideoConfig.cpp Src/VideoState.cpp Src/XFMemory.cpp diff --git a/Source/Core/Common/Src/VideoBackendBase.cpp b/Source/Core/VideoCommon/Src/VideoBackendBase.cpp similarity index 99% rename from Source/Core/Common/Src/VideoBackendBase.cpp rename to Source/Core/VideoCommon/Src/VideoBackendBase.cpp index 99bce01156..4769ede3a0 100644 --- a/Source/Core/Common/Src/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/Src/VideoBackendBase.cpp @@ -19,6 +19,8 @@ VideoBackend* g_video_backend = NULL; static VideoBackend* s_default_backend = NULL; #ifdef _WIN32 +#include + // http://msdn.microsoft.com/en-us/library/ms725491.aspx static bool IsGteVista() { diff --git a/Source/Core/Common/Src/VideoBackendBase.h b/Source/Core/VideoCommon/Src/VideoBackendBase.h similarity index 100% rename from Source/Core/Common/Src/VideoBackendBase.h rename to Source/Core/VideoCommon/Src/VideoBackendBase.h diff --git a/Source/Core/VideoCommon/VideoCommon.vcxproj b/Source/Core/VideoCommon/VideoCommon.vcxproj index 1e7a56f578..c5896af1a6 100644 --- a/Source/Core/VideoCommon/VideoCommon.vcxproj +++ b/Source/Core/VideoCommon/VideoCommon.vcxproj @@ -213,6 +213,7 @@ + @@ -266,6 +267,7 @@ + diff --git a/Source/Core/VideoCommon/VideoCommon.vcxproj.filters b/Source/Core/VideoCommon/VideoCommon.vcxproj.filters index 785e55877f..3f864b0e7e 100644 --- a/Source/Core/VideoCommon/VideoCommon.vcxproj.filters +++ b/Source/Core/VideoCommon/VideoCommon.vcxproj.filters @@ -4,6 +4,7 @@ + Vertex Loading @@ -128,6 +129,7 @@ + Vertex Loading