lsnes rr0-β2
[lsnes.git] / moviedata.hpp
blob492a5fabbcdbdd389f0fc5b6a52e2943e5364f5e
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 SAVE_STATE 0
13 #define SAVE_MOVIE 1
15 extern struct moviefile our_movie;
16 extern struct loaded_rom* our_rom;
17 extern bool system_corrupt;
18 std::vector<char>& get_host_memory();
19 movie& get_movie();
21 std::pair<std::string, std::string> split_author(const std::string& author) throw(std::bad_alloc,
22 std::runtime_error);
24 void do_save_state(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
25 void do_save_movie(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
26 void do_load_state(struct moviefile& _movie, int lmode);
27 void do_load_state(const std::string& filename, int lmode);
29 extern movie_logic movb;
31 #endif