ALL: Huge upstream synch + PerRom DelaySI & CountPerOp parameters
[mupen64plus-pandora.git] / source / mupen64plus-core / src / main / main.h
CommitLineData
451ab91e 1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - main.h *
3 * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4 * Copyright (C) 2012 CasualJames *
5 * Copyright (C) 2002 Blight *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
22
23#ifndef __MAIN_H__
24#define __MAIN_H__
25
26#include "api/m64p_types.h"
27
28/* globals */
29extern m64p_handle g_CoreConfig;
30
31extern int g_MemHasBeenBSwapped;
32extern int g_EmulatorRunning;
33
34extern m64p_frame_callback g_FrameCallback;
35
2d262872 36extern int delay_si;
37
451ab91e 38const char* get_savestatepath(void);
39const char* get_savesrampath(void);
40
41void new_frame(void);
42void new_vi(void);
43
44int main_set_core_defaults(void);
45void main_message(m64p_msg_level level, unsigned int osd_corner, const char *format, ...);
46
47m64p_error main_run(void);
48void main_stop(void);
49void main_toggle_pause(void);
50void main_advance_one(void);
51
52void main_speedup(int percent);
53void main_speeddown(int percent);
54void main_set_fastforward(int enable);
55
56void main_take_next_screenshot(void);
57
58void main_state_set_slot(int slot);
59void main_state_inc_slot(void);
60void main_state_load(const char *filename);
61void main_state_save(int format, const char *filename);
62
63m64p_error main_core_state_query(m64p_core_param param, int *rval);
64m64p_error main_core_state_set(m64p_core_param param, int val);
65
66m64p_error main_get_screen_size(int *width, int *height);
67m64p_error main_read_screen(void *pixels, int bFront);
68
69m64p_error main_volume_up(void);
70m64p_error main_volume_down(void);
71m64p_error main_volume_get_level(int *level);
72m64p_error main_volume_set_level(int level);
73m64p_error main_volume_mute(void);
74int main_volume_get_muted(void);
75
76m64p_error main_reset(int do_hard_reset);
77
78#endif /* __MAIN_H__ */
79