Port the generic control stuff from wxwidgets work
[lsnes.git] / generic / moviedata.hpp
blob5006a6c1bfcb382ac7bf6404ec825f091c3422c1
1 #ifndef _moviedata__hpp__included__
2 #define _moviedata__hpp__included__
4 #include "moviefile.hpp"
5 #include "movie.hpp"
7 #define LOAD_STATE_RW 0
8 #define LOAD_STATE_RO 1
9 #define LOAD_STATE_PRESERVE 2
10 #define LOAD_STATE_MOVIE 3
11 #define LOAD_STATE_DEFAULT 4
12 #define LOAD_STATE_CURRENT 5
13 #define SAVE_STATE 0
14 #define SAVE_MOVIE 1
16 extern struct moviefile our_movie;
17 extern struct loaded_rom* our_rom;
18 extern bool system_corrupt;
19 std::vector<char>& get_host_memory();
20 movie& get_movie();
22 std::pair<std::string, std::string> split_author(const std::string& author) throw(std::bad_alloc,
23 std::runtime_error);
25 void do_save_state(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
26 void do_save_movie(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
27 void do_load_state(struct moviefile& _movie, int lmode);
28 bool do_load_state(const std::string& filename, int lmode);
30 extern movie_logic movb;
32 #endif