support armv5 build
[pcsx_rearmed.git] / frontend / main.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
ef79bbde
P
24#define DEFAULT_MEM_CARD_1 "/.pcsx/memcards/card1.mcd"
25#define DEFAULT_MEM_CARD_2 "/.pcsx/memcards/card2.mcd"
26#define MEMCARD_DIR "/.pcsx/memcards/"
27#define PLUGINS_DIR "/.pcsx/plugins/"
28#define PLUGINS_CFG_DIR "/.pcsx/plugins/cfg/"
29#define PCSX_DOT_DIR "/.pcsx/"
ef79bbde
P
30#define STATES_DIR "/.pcsx/sstates/"
31#define CHEATS_DIR "/.pcsx/cheats/"
32#define PATCHES_DIR "/.pcsx/patches/"
1bd9ee68 33#define BIOS_DIR "/bios/"
ef79bbde 34
c5061935 35extern char cfgfile_basename[MAXPATHLEN];
ef79bbde 36
8f892648 37extern int state_slot;
c5061935 38int get_state_filename(char *buf, int size, int i);
8f892648 39int emu_check_state(int slot);
40int emu_save_state(int slot);
41int emu_load_state(int slot);
42
e16a7e51 43void set_cd_image(const char *fname);
ef79bbde 44
c5061935 45extern unsigned long gpuDisp;
46extern int ready_to_go;
ef79bbde 47
8f892648 48extern char hud_msg[64];
49extern int hud_new_msg;
50
51enum sched_action {
52 SACTION_NONE,
53 SACTION_ENTER_MENU,
54 SACTION_LOAD_STATE,
55 SACTION_SAVE_STATE,
56 SACTION_NEXT_SSLOT,
57 SACTION_PREV_SSLOT,
58 SACTION_TOGGLE_FSKIP,
29a8c4f3 59 SACTION_SCREENSHOT,
4c08b9e7 60 SACTION_GUN_TRIGGER = 16,
61 SACTION_GUN_A,
62 SACTION_GUN_B,
63 SACTION_GUN_TRIGGER2,
8f892648 64};
65
4c08b9e7 66#define SACTION_GUN_MASK (0x0f << SACTION_GUN_TRIGGER)
67
8f892648 68static inline void emu_set_action(enum sched_action action_)
69{
70 extern enum sched_action emu_action, emu_action_old;
71 extern int stop;
72
73 if (action_ == SACTION_NONE)
74 emu_action_old = 0;
75 else if (action_ != emu_action_old)
76 stop = 1;
77 emu_action = action_;
78}
79
ef79bbde 80#endif /* __LINUX_H__ */