RICE: OOT Fix from mupen64plus-ae team
[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
36const char* get_savestatepath(void);
37const char* get_savesrampath(void);
38
39void new_frame(void);
40void new_vi(void);
41
42int main_set_core_defaults(void);
43void main_message(m64p_msg_level level, unsigned int osd_corner, const char *format, ...);
44
45m64p_error main_run(void);
46void main_stop(void);
47void main_toggle_pause(void);
48void main_advance_one(void);
49
50void main_speedup(int percent);
51void main_speeddown(int percent);
52void main_set_fastforward(int enable);
53
54void main_take_next_screenshot(void);
55
56void main_state_set_slot(int slot);
57void main_state_inc_slot(void);
58void main_state_load(const char *filename);
59void main_state_save(int format, const char *filename);
60
61m64p_error main_core_state_query(m64p_core_param param, int *rval);
62m64p_error main_core_state_set(m64p_core_param param, int val);
63
64m64p_error main_get_screen_size(int *width, int *height);
65m64p_error main_read_screen(void *pixels, int bFront);
66
67m64p_error main_volume_up(void);
68m64p_error main_volume_down(void);
69m64p_error main_volume_get_level(int *level);
70m64p_error main_volume_set_level(int level);
71m64p_error main_volume_mute(void);
72int main_volume_get_muted(void);
73
74m64p_error main_reset(int do_hard_reset);
75
76#endif /* __MAIN_H__ */
77