Since window is singleton anyway, get rid of window* parameters
[lsnes.git] / moviedata.hpp
blob63a5ab1cc05173877d0e98ea036e9154e4105195
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 void do_save_state(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
22 void do_save_movie(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
23 void do_load_state(struct moviefile& _movie, int lmode);
24 void do_load_state(const std::string& filename, int lmode);
26 extern movie_logic movb;
28 #endif