pcsxr-1.9.92
[pcsx_rearmed.git] / win32 / gui / Win32.h
... / ...
CommitLineData
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#ifndef __WIN32_H__\r
20#define __WIN32_H__\r
21\r
22typedef struct {\r
23 HWND hWnd; // Main window handle\r
24 HINSTANCE hInstance; // Application instance\r
25 HMENU hMenu; // Main window menu\r
26} AppData;\r
27\r
28AppData gApp;\r
29HANDLE hConsole;\r
30\r
31extern int StatesC;\r
32extern int AccBreak;\r
33extern int ConfPlug;\r
34extern int CancelQuit;\r
35extern char cfgfile[256];\r
36extern int Running;\r
37extern char PcsxDir[256];\r
38\r
39void strcatz(char *dst, char *src);\r
40\r
41LRESULT WINAPI MainWndProc(HWND, UINT, WPARAM, LPARAM);\r
42BOOL CALLBACK ConfigureMcdsDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
43BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
44BOOL CALLBACK ConfigureNetPlayDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
45\r
46LRESULT WINAPI CheatDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
47LRESULT WINAPI CheatSearchDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
48\r
49void ConfigurePlugins(HWND hWnd);\r
50\r
51int Open_File_Proc(char *file);\r
52int Open_Iso_Proc(char *file);\r
53void Open_Mcd_Proc(HWND hW, int MCDID);\r
54void CreateMainWindow(int nCmdShow);\r
55void RunGui();\r
56void PADhandleKey(int key);\r
57\r
58int LoadConfig();\r
59void SaveConfig();\r
60\r
61void UpdateMenuSlots();\r
62void ResetMenuSlots();\r
63\r
64void InitLanguages();\r
65char *GetLanguageNext();\r
66void CloseLanguages();\r
67void ChangeLanguage(char *lang);\r
68\r
69#endif /* __WIN32_H__ */\r