summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/luaengine.h
Commit message (Collapse)AuthorAgeFilesLines
* luaengine: add memory writers Luca Bruno2015-01-181-0/+1
| | | | | | Add methods for memory writing, similarly to existing readers. Signed-off-by: Luca Bruno <lucab@debian.org>
* luaengine: use visible_area for drawing Luca Bruno2015-01-181-0/+2
| | | | | | | Drawing and scripts should use the actual visible_area, not the maximum declared screen size. Signed-off-by: Luca Bruno <lucab@debian.org>
* Do not include all if not needed (nw) Miodrag Milanovic2015-01-111-3/+4
|
* luaengine: expose device state entries Luca Bruno2015-01-111-1/+4
| | | | | | | | | This commit exposes device_state_entry to LUA, providing methods to enumerate available states for a device object, as well as getting and setting their values. It is mostly usefull to inspect and manipulate registers content. Signed-off-by: Luca Bruno <lucab@debian.org>
* Fixed LUA compile Miodrag Milanovic2015-01-101-1/+1
|
* Added more resent lsqlite3 version and fixed compile Miodrag Milanovic2015-01-101-1/+0
|
* Added full LuaBridge sources Miodrag Milanovic2015-01-101-1/+1
|
* luaengine: add frame hooking support Luca Bruno2014-12-251-0/+5
| | | | | | | | | This commit adds a method to let LUA scripts register a callback to be invoked before rendering each frame. This callback typically makes use of screen drawing methods to draw a custom HUD on top of each frame. Signed-off-by: Luca Bruno <lucab@debian.org>
* luaengine: add screen drawing/HUD capabilities Luca Bruno2014-12-251-0/+6
| | | | | | | | | This commit allows LUA scripts to implement HUD capabilities, by overlaying elements (lines, boxes, text) to screen. Mostly used to draw custom graphic helpers for trainings and TAS runs development. Signed-off-by: Luca Bruno <lucab@debian.org>
* luaengine: add access to devices and address spaces Luca Bruno2014-12-241-0/+17
| | | | | | | | | | This commit maps some more classes (device_t and address_space) to retrieve devices and address spaces out of current running machine. Proxy methods are provided to enumerate/access devices and address spaces, and to read memory content. Signed-off-by: Luca Bruno <lucab@debian.org>
* luaengine: add emu.app_name()/app_version() methods Luca Bruno2014-12-081-0/+2
| | | | | | | | | | This commit adds two methods to LUA interface, allowing scripts to programatically retrieve current running application name and version. The idea is to make scripts aware of changes in the API, by linking it to current version number. Compatibility helpers can then be added to LUA scripts to keep working across API changes. Signed-off-by: Luca Bruno <lucab@debian.org>
* luaengine: add emu.pause()/unpause() methods Luca Bruno2014-12-021-0/+2
| | | | Signed-off-by: Luca Bruno <lucab@debian.org>
* luaengine: add emu.romname() method Luca Bruno2014-12-021-0/+1
| | | | Signed-off-by: Luca Bruno <lucab@debian.org>
* More cleanups, there is issue with srcclean that needs to be taken care as ↵ Miodrag Milanovic2014-07-221-4/+4
| | | | well, just doing now what we can
* Fixed lua engine initialization (nw) Miodrag Milanovic2014-07-151-0/+1
|
* Added LuaBridge and exposed few classes as example (nw) Miodrag Milanovic2014-06-201-1/+0
|
* Lua overhaul [Olivier Galibert, Miodrag Milanovic] Miodrag Milanovic2014-06-101-7/+64
|
* made LUA script execute in main thread, but console running in another (nw) Miodrag Milanovic2014-06-091-3/+1
| | | Need to generalize mechanism of communication between threads and do more cleanup
* -Created machine_manager as singleton class that contains (for now) one ↵ Miodrag Milanovic2014-06-061-14/+9
| | | | | | | | | running machine [Miodrag Milanovic] -Updated LUA engine to run in machine_manager instead of being initialized per machine -Added "-console" option so emulator can be started with LUA enabled console -Update LUA to version 5.2.3 -Enabled SQLite3 to be compiled and added LUA module for it
* Marking some of my core files (nw) Miodrag Milanovic2013-10-161-31/+2
|
* Cleanups and version bumpmame0148u5 Miodrag Milanovic2013-05-201-7/+7
|
* added emu.keypost function to lua, and made autoboot_command execute that ↵ Miodrag Milanovic2013-05-091-2/+4
| | | | one instead of direct execution, note that you need to add \n for new line at the end now (nw)
* LUA 5.2.2 added to libraries, did basic hookup of LUA VM into running ↵ Miodrag Milanovic2013-05-091-0/+79
machine [Miodrag Milanovic] added -script (or -autoboot_script) command to execute LUA script after driver startup