Core commit. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / mupen64plus-core / src / main / savestates.h
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  *   Mupen64plus - savestates.h                                            *
3  *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
4  *   Copyright (C) 2012 CasualJames                                        *
5  *   Copyright (C) 2009 Olejl Tillin9                                      *
6  *   Copyright (C) 2008 Richard42 Tillin9                                  *
7  *   Copyright (C) 2002 Hacktarux                                          *
8  *                                                                         *
9  *   This program is free software; you can redistribute it and/or modify  *
10  *   it under the terms of the GNU General Public License as published by  *
11  *   the Free Software Foundation; either version 2 of the License, or     *
12  *   (at your option) any later version.                                   *
13  *                                                                         *
14  *   This program is distributed in the hope that it will be useful,       *
15  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
16  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
17  *   GNU General Public License for more details.                          *
18  *                                                                         *
19  *   You should have received a copy of the GNU General Public License     *
20  *   along with this program; if not, write to the                         *
21  *   Free Software Foundation, Inc.,                                       *
22  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
23  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24
25 #ifndef __SAVESTAVES_H__
26 #define __SAVESTAVES_H__
27
28 typedef enum _savestates_job
29 {
30     savestates_job_nothing,
31     savestates_job_load,
32     savestates_job_save
33 } savestates_job;
34
35 typedef enum _savestates_type
36 {
37     savestates_type_unknown,
38     savestates_type_m64p,
39     savestates_type_pj64_zip,
40     savestates_type_pj64_unc
41 } savestates_type;
42
43 savestates_job savestates_get_job(void);
44 void savestates_set_job(savestates_job j, savestates_type t, const char *fn);
45 void savestates_init(void);
46 void savestates_deinit(void);
47
48 int savestates_load(void);
49 int savestates_save(void);
50
51 void savestates_select_slot(unsigned int s);
52 unsigned int savestates_get_slot(void);
53 void savestates_set_autoinc_slot(int b);
54 void savestates_inc_slot(void);
55
56 #endif /* __SAVESTAVES_H__ */
57