From 7dc0792de4725ac73cdedc02e0b65ed695d3cefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Sun, 25 Feb 2018 15:40:33 +0100 Subject: [PATCH] Refactored cli app --- src/cli/EncWAVtoAC3.CLI.vcxproj | 13 +------------ src/cli/EncWAVtoAC3.CLI.vcxproj.filters | 8 +------- src/cli/{EncWAVtoAC3.CLI.cpp => main.cpp} | 4 +++- src/cli/stdafx.cpp | 1 - src/cli/stdafx.h | 6 ------ src/cli/targetver.h | 8 -------- 6 files changed, 5 insertions(+), 35 deletions(-) rename src/cli/{EncWAVtoAC3.CLI.cpp => main.cpp} (98%) delete mode 100644 src/cli/stdafx.cpp delete mode 100644 src/cli/stdafx.h delete mode 100644 src/cli/targetver.h diff --git a/src/cli/EncWAVtoAC3.CLI.vcxproj b/src/cli/EncWAVtoAC3.CLI.vcxproj index 5804b55..b9c5e3d 100644 --- a/src/cli/EncWAVtoAC3.CLI.vcxproj +++ b/src/cli/EncWAVtoAC3.CLI.vcxproj @@ -92,7 +92,6 @@ - Use Level3 Disabled true @@ -110,7 +109,6 @@ - Use Level3 Disabled true @@ -128,7 +126,6 @@ - Use Level3 Full true @@ -151,7 +148,6 @@ - Use Level3 Full true @@ -173,18 +169,11 @@ - - - - Create - Create - Create - Create - + diff --git a/src/cli/EncWAVtoAC3.CLI.vcxproj.filters b/src/cli/EncWAVtoAC3.CLI.vcxproj.filters index 1c5dbd2..07716ab 100644 --- a/src/cli/EncWAVtoAC3.CLI.vcxproj.filters +++ b/src/cli/EncWAVtoAC3.CLI.vcxproj.filters @@ -15,9 +15,6 @@ - - Header Files - Header Files @@ -26,10 +23,7 @@ - - Source Files - - + Source Files diff --git a/src/cli/EncWAVtoAC3.CLI.cpp b/src/cli/main.cpp similarity index 98% rename from src/cli/EncWAVtoAC3.CLI.cpp rename to src/cli/main.cpp index 6e2e9c7..cc54f60 100644 --- a/src/cli/EncWAVtoAC3.CLI.cpp +++ b/src/cli/main.cpp @@ -1,4 +1,6 @@ -#include "stdafx.h" +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN +#include #include "App.h" #include "utilities\ArgvParser.h" diff --git a/src/cli/stdafx.cpp b/src/cli/stdafx.cpp deleted file mode 100644 index 6575610..0000000 --- a/src/cli/stdafx.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "stdafx.h" \ No newline at end of file diff --git a/src/cli/stdafx.h b/src/cli/stdafx.h deleted file mode 100644 index 5682f23..0000000 --- a/src/cli/stdafx.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - -#include "targetver.h" - -#define WIN32_LEAN_AND_MEAN -#include diff --git a/src/cli/targetver.h b/src/cli/targetver.h deleted file mode 100644 index a66ecb0..0000000 --- a/src/cli/targetver.h +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once - -// Including SDKDDKVer.h defines the highest available Windows platform. - -// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and -// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. - -#include