2014-05-10 11:09:28 +03:00
|
|
|
#ifndef _instance__hpp__included__
|
|
|
|
#define _instance__hpp__included__
|
|
|
|
|
2014-05-18 01:39:53 +03:00
|
|
|
#include <deque>
|
2014-05-18 00:38:58 +03:00
|
|
|
#include "core/command.hpp"
|
2014-05-18 02:20:23 +03:00
|
|
|
#include "core/controllerframe.hpp"
|
2014-05-21 18:32:17 +03:00
|
|
|
#include "core/debug.hpp"
|
2014-05-10 14:48:08 +03:00
|
|
|
#include "core/emustatus.hpp"
|
2014-05-23 20:14:12 +03:00
|
|
|
#include "core/framebuffer.hpp"
|
2014-05-23 19:43:03 +03:00
|
|
|
#include "core/framerate.hpp"
|
2014-05-10 13:12:42 +03:00
|
|
|
#include "core/inthread.hpp"
|
2014-05-10 11:22:31 +03:00
|
|
|
#include "core/movie.hpp"
|
2014-05-18 00:55:11 +03:00
|
|
|
#include "core/moviedata.hpp"
|
2014-05-10 14:11:24 +03:00
|
|
|
#include "core/mbranch.hpp"
|
2014-05-18 01:58:05 +03:00
|
|
|
#include "core/memorymanip.hpp"
|
2014-05-10 11:41:08 +03:00
|
|
|
#include "core/memorywatch.hpp"
|
2014-05-10 14:36:54 +03:00
|
|
|
#include "core/multitrack.hpp"
|
2014-05-18 12:34:22 +03:00
|
|
|
#include "core/project.hpp"
|
2014-05-24 12:05:38 +03:00
|
|
|
#include "core/queue.hpp"
|
2014-05-11 20:01:26 +03:00
|
|
|
#include "library/command.hpp"
|
2014-05-10 11:32:48 +03:00
|
|
|
#include "library/lua-base.hpp"
|
2014-05-10 11:22:31 +03:00
|
|
|
#include "library/memoryspace.hpp"
|
2014-05-10 11:54:15 +03:00
|
|
|
#include "library/settingvar.hpp"
|
2014-05-11 15:29:27 +03:00
|
|
|
#include "library/keyboard.hpp"
|
|
|
|
#include "library/keyboard-mapper.hpp"
|
2014-05-10 11:09:28 +03:00
|
|
|
|
2014-05-24 11:39:36 +03:00
|
|
|
|
|
|
|
struct emulator_instance
|
|
|
|
{
|
|
|
|
emulator_instance();
|
|
|
|
movie_logic mlogic;
|
|
|
|
memory_space memory;
|
|
|
|
lua::state lua;
|
|
|
|
memwatch_set mwatch;
|
|
|
|
settingvar::group settings;
|
|
|
|
settingvar::cache setcache;
|
|
|
|
voice_commentary commentary;
|
|
|
|
subtitle_commentary subtitles;
|
|
|
|
movie_branches mbranch;
|
|
|
|
multitrack_edit mteditor;
|
|
|
|
_lsnes_status status_A;
|
|
|
|
_lsnes_status status_B;
|
|
|
|
_lsnes_status status_C;
|
|
|
|
triplebuffer::triplebuffer<_lsnes_status> status;
|
|
|
|
keyboard::keyboard keyboard;
|
|
|
|
keyboard::mapper mapper;
|
|
|
|
command::group command;
|
|
|
|
alias_binds_manager abindmanager;
|
|
|
|
rrdata nrrdata;
|
|
|
|
cart_mappings_refresher cmapper;
|
|
|
|
controller_state controls;
|
|
|
|
project_state project;
|
|
|
|
debug_context dbg;
|
|
|
|
framerate_regulator framerate;
|
|
|
|
emu_framebuffer fbuf;
|
|
|
|
input_queue iqueue;
|
|
|
|
threads::id emu_thread;
|
2014-05-10 11:09:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
extern emulator_instance lsnes_instance;
|
|
|
|
|
2014-05-10 13:55:07 +03:00
|
|
|
emulator_instance& CORE();
|
|
|
|
|
2014-05-10 11:09:28 +03:00
|
|
|
#endif
|