pcsxr-1.9.92
[pcsx_rearmed.git] / win32 / gui / AboutDlg.c
1 /*  Pcsx - Pc Psx Emulator\r
2  *  Copyright (C) 1999-2003  Pcsx Team\r
3  *\r
4  *  This program is free software; you can redistribute it and/or modify\r
5  *  it under the terms of the GNU General Public License as published by\r
6  *  the Free Software Foundation; either version 2 of the License, or\r
7  *  (at your option) any later version.\r
8  *\r
9  *  This program is distributed in the hope that it will be useful,\r
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
12  *  GNU General Public License for more details.\r
13  *\r
14  *  You should have received a copy of the GNU General Public License\r
15  *  along with this program; if not, write to the Free Software\r
16  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA\r
17  */\r
18 \r
19 #include <windows.h>\r
20 #include <windowsx.h>\r
21 #include "resource.h"\r
22 #include "AboutDlg.h"\r
23 #include "psxcommon.h"\r
24 \r
25 char *LabelAuthors = { N_(\r
26         "PCSX - A PlayStation Emulator\n\n"\r
27         "Original Authors:\n"\r
28         "main coder: linuzappz\n"\r
29         "co-coders: shadow\n"\r
30         "ex-coders: Nocomp, Pete Bernett, nik3d\n"\r
31         "Webmaster: AkumaX")\r
32 };\r
33 \r
34 char *LabelGreets = { N_(\r
35         "PCSX-df Authors:\n"\r
36         "Ryan Schultz, Andrew Burton, Stephen Chao,\n"\r
37         "Marcus Comstedt, Stefan Sikora\n\n"\r
38         "PCSX-Reloaded By:\n"\r
39         "Blade_Arma, Wei Mingzhi, et al.\n\n"\r
40         "http://pcsxr.codeplex.com/")\r
41 };\r
42 \r
43 LRESULT WINAPI AboutDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {\r
44         switch (uMsg) {\r
45                 case WM_INITDIALOG:\r
46                         SetWindowText(hDlg, _("About"));\r
47 \r
48                         Button_SetText(GetDlgItem(hDlg, IDOK), _("OK"));\r
49                         Static_SetText(GetDlgItem(hDlg, IDC_PCSX_ABOUT_TEXT), _("PCSX EMU\n"));\r
50                         Static_SetText(GetDlgItem(hDlg, IDC_PCSX_ABOUT_AUTHORS), _(LabelAuthors));\r
51                         Static_SetText(GetDlgItem(hDlg, IDC_PCSX_ABOUT_GREETS), _(LabelGreets));\r
52                         Button_SetText(GetDlgItem(hDlg,IDOK), _("OK"));\r
53                         return TRUE;\r
54 \r
55                 case WM_COMMAND:\r
56                         switch (wParam) {\r
57                                 case IDOK:\r
58                                         EndDialog(hDlg, TRUE);\r
59                                         return TRUE;\r
60                         }\r
61                         break;\r
62 \r
63                 case WM_CLOSE:\r
64                         EndDialog(hDlg, TRUE);\r
65                         return TRUE;\r
66         }\r
67         return FALSE;\r
68 }\r