Commit | Line | Data |
---|---|---|
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 | ||
69e482e3 | 19 | #ifndef __FRONTEND_MAIN_H__ |
20 | #define __FRONTEND_MAIN_H__ | |
ef79bbde | 21 | |
1ae743b1 | 22 | #include <stdlib.h> |
ef79bbde P |
23 | #include "config.h" |
24 | ||
ef79bbde | 25 | #define PCSX_DOT_DIR "/.pcsx/" |
1ae743b1 | 26 | #define DEFAULT_MEM_CARD_1 PCSX_DOT_DIR "memcards/card1.mcd" |
27 | #define DEFAULT_MEM_CARD_2 PCSX_DOT_DIR "memcards/card2.mcd" | |
28 | #define MEMCARD_DIR PCSX_DOT_DIR "memcards/" | |
29 | #define STATES_DIR PCSX_DOT_DIR "sstates/" | |
30 | #define CHEATS_DIR PCSX_DOT_DIR "cheats/" | |
31 | #define PATCHES_DIR PCSX_DOT_DIR "patches/" | |
32 | #define CFG_DIR PCSX_DOT_DIR "cfg/" | |
33 | #ifndef PANDORA | |
34 | #define BIOS_DIR PCSX_DOT_DIR "bios/" | |
35 | #define SCREENSHOTS_DIR PCSX_DOT_DIR "screenshots/" | |
36 | #else | |
37 | #define BIOS_DIR "/bios/" | |
38 | #define SCREENSHOTS_DIR "/screenshots/" | |
39 | #endif | |
ef79bbde | 40 | |
c5061935 | 41 | extern char cfgfile_basename[MAXPATHLEN]; |
ef79bbde | 42 | |
8f892648 | 43 | extern int state_slot; |
38c2028e | 44 | |
45 | /* emu_core_preinit - must be the very first call | |
46 | * emu_core_init - to be called after platform-specific setup */ | |
47 | int emu_core_preinit(void); | |
48 | int emu_core_init(void); | |
49 | ||
69e482e3 | 50 | void emu_core_ask_exit(void); |
51 | ||
33400707 | 52 | void emu_set_default_config(void); |
79f216e3 | 53 | void emu_on_new_cd(int show_hud_msg); |
9c27c205 | 54 | |
1ae743b1 | 55 | void emu_make_path(char *buf, size_t size, const char *dir, const char *fname); |
56 | void emu_make_data_path(char *buff, const char *end, int size); | |
57 | ||
c5061935 | 58 | int get_state_filename(char *buf, int size, int i); |
8f892648 | 59 | int emu_check_state(int slot); |
60 | int emu_save_state(int slot); | |
61 | int emu_load_state(int slot); | |
62 | ||
e16a7e51 | 63 | void set_cd_image(const char *fname); |
ef79bbde | 64 | |
c5061935 | 65 | extern unsigned long gpuDisp; |
69e482e3 | 66 | extern int ready_to_go, g_emu_want_quit, g_emu_resetting; |
ef79bbde | 67 | |
8f892648 | 68 | extern char hud_msg[64]; |
69 | extern int hud_new_msg; | |
70 | ||
71 | enum sched_action { | |
72 | SACTION_NONE, | |
73 | SACTION_ENTER_MENU, | |
74 | SACTION_LOAD_STATE, | |
75 | SACTION_SAVE_STATE, | |
76 | SACTION_NEXT_SSLOT, | |
77 | SACTION_PREV_SSLOT, | |
78 | SACTION_TOGGLE_FSKIP, | |
fa56d360 | 79 | SACTION_SWITCH_DISPMODE, |
456f1b86 | 80 | SACTION_FAST_FORWARD, |
29a8c4f3 | 81 | SACTION_SCREENSHOT, |
69e482e3 | 82 | SACTION_VOLUME_UP, // 10 |
221be40d | 83 | SACTION_VOLUME_DOWN, |
a805c855 | 84 | SACTION_MINIMIZE, |
dde7da71 | 85 | SACTION_TOGGLE_FPS, |
a8376201 | 86 | SACTION_TOGGLE_FULLSCREEN, |
4c08b9e7 | 87 | SACTION_GUN_TRIGGER = 16, |
88 | SACTION_GUN_A, | |
89 | SACTION_GUN_B, | |
90 | SACTION_GUN_TRIGGER2, | |
fb640dd9 | 91 | SACTION_ANALOG_TOGGLE, |
8f892648 | 92 | }; |
93 | ||
4c08b9e7 | 94 | #define SACTION_GUN_MASK (0x0f << SACTION_GUN_TRIGGER) |
95 | ||
69e482e3 | 96 | #endif /* __FRONTEND_MAIN_H__ */ |