From b67b969bf0911d71396c77e42d85ddfe80de6f20 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 7 Apr 2023 06:20:40 +1000 Subject: -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. --- docs/source/techspecs/luaengine.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/source/techspecs/luaengine.rst') 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: -- cgit v1.2.3-70-g09d2