dfxvideo: massive cleanup
[pcsx_rearmed.git] / gui / Linux.h
CommitLineData
ef79bbde
P
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
40extern gboolean UseGui;
41extern int StatesC;
42char cfgfile[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */
43char cfgfile_basename[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */
44
45int LoadConfig();
46void SaveConfig();
47
48void StartGui();
49
50void PADhandleKey(int key);
51
52void UpdateMenuSlots();
53
54gchar* get_state_filename(int i);
55
56void state_save(gchar *state_filename);
57void state_load(gchar *state_filename);
58
59int match(const char* string, char* pattern);
60int plugins_configured();
61
62void UpdatePluginsBIOS();
63
64void SysErrorMessage(gchar *primary, gchar *secondary);
65void SysInfoMessage(gchar *primary, gchar *secondary);
66
67#endif /* __LINUX_H__ */