More code cleanups
[lsnes.git] / moviedata.hpp
blob3fdd8437e4c216cb157fcfcec43558e3c99a8e21
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(window* win, const std::string& filename) throw(std::bad_alloc, std::runtime_error);
22 void do_save_movie(window* win, const std::string& filename) throw(std::bad_alloc, std::runtime_error);
23 void do_load_state(window* win, struct moviefile& _movie, int lmode);
24 void do_load_state(window* win, const std::string& filename, int lmode);
27 extern movie_logic movb;
29 #endif