| 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 |
| 22 | typedef 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 |
| 28 | AppData gApp;\r |
| 29 | HANDLE hConsole;\r |
| 30 | \r |
| 31 | extern int StatesC;\r |
| 32 | extern int AccBreak;\r |
| 33 | extern int ConfPlug;\r |
| 34 | extern int CancelQuit;\r |
| 35 | extern char cfgfile[256];\r |
| 36 | extern int Running;\r |
| 37 | extern char PcsxDir[256];\r |
| 38 | \r |
| 39 | void strcatz(char *dst, char *src);\r |
| 40 | \r |
| 41 | LRESULT WINAPI MainWndProc(HWND, UINT, WPARAM, LPARAM);\r |
| 42 | BOOL CALLBACK ConfigureMcdsDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r |
| 43 | BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r |
| 44 | BOOL CALLBACK ConfigureNetPlayDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r |
| 45 | \r |
| 46 | LRESULT WINAPI CheatDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r |
| 47 | LRESULT WINAPI CheatSearchDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);\r |
| 48 | \r |
| 49 | void ConfigurePlugins(HWND hWnd);\r |
| 50 | \r |
| 51 | int Open_File_Proc(char *file);\r |
| 52 | int Open_Iso_Proc(char *file);\r |
| 53 | void Open_Mcd_Proc(HWND hW, int MCDID);\r |
| 54 | void CreateMainWindow(int nCmdShow);\r |
| 55 | void RunGui();\r |
| 56 | void PADhandleKey(int key);\r |
| 57 | \r |
| 58 | int LoadConfig();\r |
| 59 | void SaveConfig();\r |
| 60 | \r |
| 61 | void UpdateMenuSlots();\r |
| 62 | void ResetMenuSlots();\r |
| 63 | \r |
| 64 | void InitLanguages();\r |
| 65 | char *GetLanguageNext();\r |
| 66 | void CloseLanguages();\r |
| 67 | void ChangeLanguage(char *lang);\r |
| 68 | \r |
| 69 | #endif /* __WIN32_H__ */\r |