lsnes/include/core/mbranch.hpp

33 lines
1 KiB
C++
Raw Normal View History

2014-02-04 21:16:38 +02:00
#ifndef _mbranch__hpp__included__
#define _mbranch__hpp__included__
#define MBRANCH_IMPORT_TEXT 0
#define MBRANCH_IMPORT_BINARY 1
#define MBRANCH_IMPORT_MOVIE 2
2014-05-31 13:58:17 +03:00
class emulator_dispatch;
class status_updater;
class movie_logic;
2014-05-31 13:58:17 +03:00
2014-05-10 14:11:24 +03:00
struct movie_branches
{
movie_branches(movie_logic& _mlogic, emulator_dispatch& _dispatch, status_updater& _supdater);
2014-05-10 14:11:24 +03:00
std::string name(const std::string& internal);
std::set<std::string> enumerate();
std::string get();
void set(const std::string& branch);
void _new(const std::string& branch, const std::string& from);
void rename(const std::string& oldn, const std::string& newn);
void _delete(const std::string& branch);
std::set<std::string> _movie_branches(const std::string& filename);
void import_branch(const std::string& filename, const std::string& ibranch, const std::string& branchname,
int mode);
void export_branch(const std::string& filename, const std::string& branchname, bool binary);
2014-05-10 14:11:24 +03:00
private:
movie_logic& mlogic;
2014-05-31 13:58:17 +03:00
emulator_dispatch& edispatch;
status_updater& supdater;
2014-05-10 14:11:24 +03:00
};
2014-02-04 21:16:38 +02:00
#endif