lsnes/include/core/mainloop.hpp

27 lines
826 B
C++
Raw Normal View History

#ifndef _mainloop__hpp__included__
#define _mainloop__hpp__included__
#include "rom.hpp"
#include "moviefile.hpp"
#include "movie.hpp"
/**
* \brief Emulator main loop.
*/
2011-09-20 22:05:49 +03:00
void main_loop(struct loaded_rom& rom, struct moviefile& settings, bool load_has_to_succeed = false)
throw(std::bad_alloc, std::runtime_error);
2011-11-19 08:10:50 +02:00
std::vector<std::string> get_jukebox_names();
void set_jukebox_names(const std::vector<std::string>& newj);
void update_movie_state();
extern std::string msu1_base_path;
/**
* Signal that fast rewind operation is needed.
*
* Parameter ptr: If NULL, saves a state and calls lua_callback_do_unsafe_rewind() with quicksave, movie and NULL.
* If non-NULL, calls lua_callback_do_unsafe_rewind() with movie and this parameter, but without quicksave.
*/
void mainloop_signal_need_rewind(void* ptr);
#endif