| 1 | /* Pcsx - Pc Psx Emulator |
| 2 | * Copyright (C) 1999-2002 Pcsx Team |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA |
| 17 | */ |
| 18 | |
| 19 | #ifndef __LINUX_H__ |
| 20 | #define __LINUX_H__ |
| 21 | |
| 22 | #include "config.h" |
| 23 | |
| 24 | #include "../libpcsxcore/psxcommon.h" |
| 25 | #include <gtk/gtk.h> |
| 26 | |
| 27 | #include "Cheat.h" |
| 28 | |
| 29 | #define DEFAULT_MEM_CARD_1 "/.pcsx/memcards/card1.mcd" |
| 30 | #define DEFAULT_MEM_CARD_2 "/.pcsx/memcards/card2.mcd" |
| 31 | #define MEMCARD_DIR "/.pcsx/memcards/" |
| 32 | #define PLUGINS_DIR "/.pcsx/plugins/" |
| 33 | #define PLUGINS_CFG_DIR "/.pcsx/plugins/cfg/" |
| 34 | #define PCSX_DOT_DIR "/.pcsx/" |
| 35 | #define BIOS_DIR "/.pcsx/bios/" |
| 36 | #define STATES_DIR "/.pcsx/sstates/" |
| 37 | #define CHEATS_DIR "/.pcsx/cheats/" |
| 38 | #define PATCHES_DIR "/.pcsx/patches/" |
| 39 | |
| 40 | extern gboolean UseGui; |
| 41 | extern int StatesC; |
| 42 | char cfgfile[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */ |
| 43 | char cfgfile_basename[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */ |
| 44 | |
| 45 | int LoadConfig(); |
| 46 | void SaveConfig(); |
| 47 | |
| 48 | void StartGui(); |
| 49 | |
| 50 | void PADhandleKey(int key); |
| 51 | |
| 52 | void UpdateMenuSlots(); |
| 53 | |
| 54 | gchar* get_state_filename(int i); |
| 55 | |
| 56 | void state_save(gchar *state_filename); |
| 57 | void state_load(gchar *state_filename); |
| 58 | |
| 59 | int match(const char* string, char* pattern); |
| 60 | int plugins_configured(); |
| 61 | |
| 62 | void UpdatePluginsBIOS(); |
| 63 | |
| 64 | void SysErrorMessage(gchar *primary, gchar *secondary); |
| 65 | void SysInfoMessage(gchar *primary, gchar *secondary); |
| 66 | |
| 67 | #endif /* __LINUX_H__ */ |