diff options
author | 2023-04-07 06:20:40 +1000 | |
---|---|---|
committer | 2023-04-07 06:20:40 +1000 | |
commit | b67b969bf0911d71396c77e42d85ddfe80de6f20 (patch) | |
tree | 8d964eac6e0c4c849dc2b9b0b3742154c6c943d4 /docs/source/techspecs/luaengine.rst | |
parent | c4282fecede9032be78028e8fde737d44bf2b7c6 (diff) |
-Improved some Lua APIs:
* Moved several machine lifecycle callbacks to the notifier/subscriber
model. The old callback registration model is still available for
them for now, but prints a deprecation warning.
* Added pre-save/post-load notifications.
* Use a single allocated timer rather than one anonymous timer per
waiter. Waiters no longer prevent saved states from being loaded.
* Clean up outstanding waiters on stop or state load rather than just
leaking them.
* Started documenting parts of the emulator interface object that should
be relatively stable.
-imagedev/avivideo.cpp: Fixed an object leak on unload. Also changed
some other media image devices to use smart pointers.
Diffstat (limited to 'docs/source/techspecs/luaengine.rst')
-rw-r--r-- | docs/source/techspecs/luaengine.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/source/techspecs/luaengine.rst b/docs/source/techspecs/luaengine.rst index 5e97d4e3885..7f2ba99545a 100644 --- a/docs/source/techspecs/luaengine.rst +++ b/docs/source/techspecs/luaengine.rst @@ -53,9 +53,9 @@ Many of the classes are documented on the Usage ----- -MAME supports external scripting via Lua (>= 5.3) scripts, either entered at the +MAME supports external scripting via Lua scripts, either entered at the interactive console or loaded as a file. To reach the console, enable the -console plugin (e.g. run MAME with ``-plugin console``) and you will be greeted +console plugin (e.g. run MAME with ``-console``) and you will be greeted with a ``[MAME]>`` prompt where you can enter Lua script interactively. To load a whole script at once, store it in a plain text file and pass it using @@ -78,7 +78,7 @@ Let’s first run MAME in a terminal to reach the Lua console: :: - $ mame -console YOUR_ROM + $ mame -console YOUR_SYSTEM /| /| /| /| /| _______ / | / | / | / | / | / / / |/ | / | / |/ | / ____/ @@ -90,10 +90,10 @@ Let’s first run MAME in a terminal to reach the Lua console: / / / _/ - mame 0.227 + mame 0.254 Copyright (C) Nicola Salmoria and the MAME team - Lua 5.3 + Lua 5.4 Copyright (C) Lua.org, PUC-Rio [MAME]> @@ -113,7 +113,7 @@ You can check at runtime which version of MAME you are running, with: :: [MAME]> print(emu.app_name() .. " " .. emu.app_version()) - mame 0.227 + mame 0.254 We now start exploring screen related methods. First, let's enumerate available screens: |