From cf2c225b88b2056ba083d8e3c353503339960e25 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 23 Nov 2008 00:06:33 +0000 Subject: [PATCH] Delete about dialog from DSP_HLE plugin git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1262 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_DSP_HLE/Plugin_DSP_HLE.vcproj | 12 ------ .../Plugins/Plugin_DSP_HLE/Src/AboutDlg.cpp | 34 --------------- Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.h | 41 ------------------- Source/Plugins/Plugin_DSP_HLE/Src/main.cpp | 5 --- Source/Plugins/Plugin_DSP_HLE/Src/resource.h | 1 - Source/Plugins/Plugin_DSP_HLE/Src/resource.rc | 18 -------- 6 files changed, 111 deletions(-) delete mode 100644 Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.cpp delete mode 100644 Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.h diff --git a/Source/Plugins/Plugin_DSP_HLE/Plugin_DSP_HLE.vcproj b/Source/Plugins/Plugin_DSP_HLE/Plugin_DSP_HLE.vcproj index 1f21cb99b5..94e0c4940d 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Plugin_DSP_HLE.vcproj +++ b/Source/Plugins/Plugin_DSP_HLE/Plugin_DSP_HLE.vcproj @@ -704,18 +704,6 @@ - - - - - - diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.cpp deleted file mode 100644 index 2e3177409e..0000000000 --- a/Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.cpp +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (C) 2003-2008 Dolphin Project. - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 2.0. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License 2.0 for more details. - -// A copy of the GPL 2.0 should have been included with the program. -// If not, see http://www.gnu.org/licenses/ - -// Official SVN repository and contact information can be found at -// http://code.google.com/p/dolphin-emu/ - -#include "resource.h" - -#include "AboutDlg.h" - -LRESULT -CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) -{ - CenterWindow(GetParent()); - return(TRUE); -} - -LRESULT -CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) -{ - EndDialog(wID); - return(0); -} diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.h b/Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.h deleted file mode 100644 index e1c136907a..0000000000 --- a/Source/Plugins/Plugin_DSP_HLE/Src/AboutDlg.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (C) 2003-2008 Dolphin Project. - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 2.0. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License 2.0 for more details. - -// A copy of the GPL 2.0 should have been included with the program. -// If not, see http://www.gnu.org/licenses/ - -// Official SVN repository and contact information can be found at -// http://code.google.com/p/dolphin-emu/ - -#pragma once - -class CAboutDlg - : public CDialogImpl -{ - public: - - enum { IDD = IDD_ABOUT }; - - BEGIN_MSG_MAP(CAboutDlg) - MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) - COMMAND_ID_HANDLER(IDOK, OnCloseCmd) - COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) - END_MSG_MAP() - -// Handler prototypes (uncomment arguments if needed): -// LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) -// LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) -// LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) - - LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL & /*bHandled*/); - - LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL & /*bHandled*/); -}; diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp index 738c12faee..e80023195c 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp @@ -22,7 +22,6 @@ #ifdef _WIN32 #include "PCHW/DSoundStream.h" -#include "AboutDlg.h" #include "ConfigDlg.h" #else #include "PCHW/AOSoundStream.h" @@ -186,10 +185,6 @@ void GetDllInfo(PLUGIN_INFO* _PluginInfo) void DllAbout(HWND _hParent) { -#ifdef _WIN32 - CAboutDlg aboutDlg; - aboutDlg.DoModal(_hParent); -#endif } void DllConfig(HWND _hParent) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/resource.h b/Source/Plugins/Plugin_DSP_HLE/Src/resource.h index 57e2a2ba0f..e217d7decd 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/resource.h +++ b/Source/Plugins/Plugin_DSP_HLE/Src/resource.h @@ -4,7 +4,6 @@ // #define IDD_SETTINGS 101 #define IDD_DIALOG2 102 -#define IDD_ABOUT 102 #define IDC_COMBO1 1001 #define IDC_SAMPLERATE 1001 #define IDC_EDIT1 1002 diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/resource.rc b/Source/Plugins/Plugin_DSP_HLE/Src/resource.rc index 2ad5705768..890ff66866 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/resource.rc +++ b/Source/Plugins/Plugin_DSP_HLE/Src/resource.rc @@ -65,16 +65,6 @@ BEGIN CONTROL "Enable Other Audio",IDC_ENABLE_THROTTLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,50,94,10 END -IDD_ABOUT DIALOGEX 0, 0, 184, 65 -STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "About Dolphin DSP-HLE Plugin" -FONT 8, "MS Shell Dlg", 400, 0, 0x1 -BEGIN - DEFPUSHBUTTON "OK",IDOK,127,44,50,14 - LTEXT "Coded by ector and F|RES",IDC_STATIC,51,25,104,14 - LTEXT "Dolphin DSP-HLE plugin",IDC_STATIC,51,7,104,14 -END - ///////////////////////////////////////////////////////////////////////////// // @@ -93,14 +83,6 @@ BEGIN BOTTOMMARGIN, 79 HORZGUIDE, 31 END - - IDD_ABOUT, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 177 - TOPMARGIN, 7 - BOTTOMMARGIN, 58 - END END #endif // APSTUDIO_INVOKED