| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
draw_text() now accepts an optional fourth parameter to specify
text color, in ARGB format.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit fixes a type confusion bug in all draw_*() API methods.
When decimal (ie. subpixels) values were passed by user scripts, they
were incorrectly casted from float to plain integers, resulting in
incorrect graphical artifacts.
As this may happen quite often within scripts manipulating numerical
values in LUA, we now also accept decimal values as coordinates.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
| |
|
|
|
|
| |
shared between OSD builds
|
|\
| |
| | |
luaengine: screen drawing fixes and initial docs
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Several users reported that negative coordinates are wrongly handled.
This happens because we assumed using unsigned values only, while
unfortunately in many real cases negative values happen when tracking
objects partly off-screen.
This patch makes all screen drawing methods accept unsigned values,
but crop them between 0 and screen size values.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
| |
Add method to retrieve frame counter for each machine screen.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|
|
|
|
|
| |
Add methods for memory writing, similarly to existing readers.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|
|
|
| |
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|
|
|
|
|
|
| |
Drawing and scripts should use the actual visible_area,
not the maximum declared screen size.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|
|
|
|
|
|
|
|
|
| |
Improve state_get_value and state_set_value by using the
parent device_state_interface and triggering callbacks for
updates.
While at it, also remove the hackish friend relationship.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Provide a Stack<UINT64> specialization for luabridge, later
needed by some APIs.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|
|
|
|
|
|
| |
Don't mix names and tags when exposing devices to LUA.
While at it, also provide the shortname.
Signed-off-by: Luca Bruno <lucab@debian.org>
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
luaengine: add HUD-like capabilities
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Luca Bruno <lucab@debian.org>
|
|
|
|
| |
Signed-off-by: Luca Bruno <lucab@debian.org>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Need to generalize mechanism of communication between threads and do more cleanup
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Moved delegates into /src/lib/util to enable usage of delegates in other project parts
Moved mame_printf_* calls into /src/osd/osdcore.c and renamed them to osd_printf_*
Changed mess.mak to display compilation of ymmu100.ppm nicely
|
| |
|
| |
|
|
|
|
| |
one instead of direct execution, note that you need to add \n for new line at the end now (nw)
|
|
machine [Miodrag Milanovic]
added -script (or -autoboot_script) command to execute LUA script after driver startup
|