lsnes/include/core/moviedata.hpp

37 lines
1.1 KiB
C++
Raw Normal View History

#ifndef _moviedata__hpp__included__
#define _moviedata__hpp__included__
#include "moviefile.hpp"
2011-09-16 06:13:33 +03:00
#include "movie.hpp"
2011-09-16 06:13:33 +03:00
#define LOAD_STATE_RW 0
#define LOAD_STATE_RO 1
#define LOAD_STATE_PRESERVE 2
#define LOAD_STATE_MOVIE 3
#define LOAD_STATE_DEFAULT 4
#define LOAD_STATE_CURRENT 5
2012-01-13 07:25:02 +02:00
#define LOAD_STATE_BEGINNING 6
2011-09-16 06:13:33 +03:00
#define SAVE_STATE 0
#define SAVE_MOVIE 1
2011-09-16 06:13:33 +03:00
extern struct moviefile our_movie;
extern struct loaded_rom* our_rom;
extern bool system_corrupt;
std::vector<char>& get_host_memory();
2011-09-16 06:13:33 +03:00
movie& get_movie();
std::pair<std::string, std::string> split_author(const std::string& author) throw(std::bad_alloc,
std::runtime_error);
void do_save_state(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
void do_save_movie(const std::string& filename) throw(std::bad_alloc, std::runtime_error);
2012-01-13 07:25:02 +02:00
void do_load_beginning() throw(std::bad_alloc, std::runtime_error);
void do_load_state(struct moviefile& _movie, int lmode);
bool do_load_state(const std::string& filename, int lmode);
std::string translate_name_mprefix(std::string original, bool forio = false);
2011-09-16 06:13:33 +03:00
extern std::string last_save;
2011-09-16 06:13:33 +03:00
extern movie_logic movb;
#endif