From 222d669d8b42254c0da4cc3ed4696cc18252ff7e Mon Sep 17 00:00:00 2001 From: "fires.gc" Date: Wed, 16 Jul 2008 12:17:20 +0000 Subject: [PATCH] Added missing DebugFast define for several plugin projects and fixed minor bugs git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@10 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_LLE/Plugin_DSP_LLE.vcproj | 4 ++-- Source/Plugins/Plugin_DSP_LLE/Src/main.cpp | 10 +++++++--- Source/Plugins/Plugin_DSP_NULL/Plugin_DSP_NULL.vcproj | 8 ++++---- Source/Plugins/Plugin_DSP_NULL/Src/main.cpp | 7 ++++++- .../Plugins/Plugin_PadSimple/Plugin_PadSimple.vcproj | 8 ++++---- Source/Plugins/Plugin_PadSimple/Src/main.cpp | 11 ++++++++--- Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj | 8 ++++---- Source/Plugins/Plugin_VideoDX9/Src/BPStructs.cpp | 2 +- Source/Plugins/Plugin_VideoOGL/Plugin_VideoOGL.vcproj | 4 ++-- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 4 ++-- 10 files changed, 40 insertions(+), 26 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_LLE/Plugin_DSP_LLE.vcproj b/Source/Plugins/Plugin_DSP_LLE/Plugin_DSP_LLE.vcproj index ecc218f54f..3df83b89e4 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Plugin_DSP_LLE.vcproj +++ b/Source/Plugins/Plugin_DSP_LLE/Plugin_DSP_LLE.vcproj @@ -398,7 +398,7 @@ FavorSizeOrSpeed="1" OmitFramePointers="true" AdditionalIncludeDirectories="../../Core/Common/Src;../../../Externals/WTL80;../../PluginSpecs" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DSP_HLE_EXPORTS" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DSP_HLE_EXPORTS;DEBUGFAST" RuntimeLibrary="0" UsePrecompiledHeader="2" AssemblerListingLocation="$(IntDir)\" @@ -488,7 +488,7 @@ FavorSizeOrSpeed="1" OmitFramePointers="true" AdditionalIncludeDirectories="../../Core/Common/Src;../../../Externals/WTL80;../../PluginSpecs" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DSP_HLE_EXPORTS" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DSP_HLE_EXPORTS;DEBUGFAST" RuntimeLibrary="0" UsePrecompiledHeader="2" AssemblerListingLocation="$(IntDir)\" diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp index b71575d686..3b331abc8a 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp +++ b/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp @@ -66,10 +66,14 @@ void GetDllInfo(PLUGIN_INFO* _PluginInfo) _PluginInfo->Version = 0x0100; _PluginInfo->Type = PLUGIN_TYPE_DSP; -#ifndef _DEBUG - sprintf(_PluginInfo->Name, "Dolphin DSP-LLE Plugin (DSound)"); +#ifdef DEBUGFAST + sprintf(_PluginInfo->Name, "Dolphin DSP-LLE Plugin (DebugFast)"); #else - sprintf(_PluginInfo->Name, "Dolphin DSP-LLE Plugin Debug (DSound)"); +#ifndef _DEBUG + sprintf(_PluginInfo->Name, "Dolphin DSP-LLE Plugin"); +#else + sprintf(_PluginInfo->Name, "Dolphin DSP-LLE Plugin (Debug)"); +#endif #endif } diff --git a/Source/Plugins/Plugin_DSP_NULL/Plugin_DSP_NULL.vcproj b/Source/Plugins/Plugin_DSP_NULL/Plugin_DSP_NULL.vcproj index 958c1ec445..da9242548b 100644 --- a/Source/Plugins/Plugin_DSP_NULL/Plugin_DSP_NULL.vcproj +++ b/Source/Plugins/Plugin_DSP_NULL/Plugin_DSP_NULL.vcproj @@ -399,7 +399,7 @@ FavorSizeOrSpeed="1" OmitFramePointers="true" AdditionalIncludeDirectories="../../../Externals/WTL80;../../Core/Common/Src;../../PluginSpecs" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DSP_HLE_EXPORTS" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DSP_HLE_EXPORTS;DEBUGFAST" RuntimeLibrary="0" BufferSecurityCheck="false" FloatingPointModel="2" @@ -422,7 +422,7 @@ Version = 0x0100; _PluginInfo->Type = PLUGIN_TYPE_DSP; + +#ifdef DEBUGFAST + sprintf(_PluginInfo->Name, "Dolphin DSP-NULL Plugin (DebugFast)"); +#else #ifndef _DEBUG sprintf(_PluginInfo->Name, "Dolphin DSP-NULL Plugin"); #else - sprintf(_PluginInfo->Name, "Dolphin DSP-NULL Plugin Debug"); + sprintf(_PluginInfo->Name, "Dolphin DSP-NULL Plugin (Debug)"); +#endif #endif } diff --git a/Source/Plugins/Plugin_PadSimple/Plugin_PadSimple.vcproj b/Source/Plugins/Plugin_PadSimple/Plugin_PadSimple.vcproj index c24937ba9a..8c5491d1a1 100644 --- a/Source/Plugins/Plugin_PadSimple/Plugin_PadSimple.vcproj +++ b/Source/Plugins/Plugin_PadSimple/Plugin_PadSimple.vcproj @@ -449,7 +449,7 @@ Optimization="3" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../../../Externals/WTL80;../../PluginSpecs;../../Core/Common/Src" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PAD_SIMPLE_EXPORTS;_CRT_SECURE_NO_DEPRECATE" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PAD_SIMPLE_EXPORTS;_CRT_SECURE_NO_DEPRECATE;DEBUGFAST" StringPooling="true" RuntimeLibrary="0" BufferSecurityCheck="false" @@ -481,7 +481,7 @@ Version = 0x0100; _PluginInfo->Type = PLUGIN_TYPE_PAD; -#ifndef _DEBUG - strcpy(_PluginInfo->Name, "Dolphin KB/X360pad"); +#ifdef DEBUGFAST + sprintf(_PluginInfo->Name, "Dolphin KB/X360pad (DebugFast)"); #else - strcpy(_PluginInfo->Name, "Dolphin KB/X360pad (Debug)"); +#ifndef _DEBUG + sprintf(_PluginInfo->Name, "Dolphin KB/X360pad "); +#else + sprintf(_PluginInfo->Name, "Dolphin KB/X360pad (Debug)"); #endif +#endif + } diff --git a/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj b/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj index e7bbbb6dae..307f5f18a7 100644 --- a/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj +++ b/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj @@ -470,7 +470,7 @@ OmitFramePointers="false" WholeProgramOptimization="true" AdditionalIncludeDirectories="../../PluginSpecs;../../Core/Common/Src" - PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_WINDOWS;_USRDLL;VIDEO_DIRECTX9_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_SECURE_SCL=0" + PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_WINDOWS;_USRDLL;VIDEO_DIRECTX9_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_SECURE_SCL=0;DEBUGFAST" StringPooling="true" RuntimeLibrary="0" BufferSecurityCheck="false" @@ -502,7 +502,7 @@ Version = 0x0100; _PluginInfo->Type = PLUGIN_TYPE_VIDEO; #ifdef DEBUGFAST - sprintf(_PluginInfo->Name, "Dolphin OGL (DebugFast)" VERSION_STRING); + sprintf(_PluginInfo->Name, "Dolphin OGL (DebugFast) " VERSION_STRING); #else #ifndef _DEBUG sprintf(_PluginInfo->Name, "Dolphin OGL " VERSION_STRING); #else - sprintf(_PluginInfo->Name, "Dolphin OGL Debug " VERSION_STRING); + sprintf(_PluginInfo->Name, "Dolphin OGL (Debug) " VERSION_STRING); #endif #endif }