summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/console
Commit message (Collapse)AuthorAgeFilesLines
* srcclean for release Vas Crabb2021-05-231-5/+5
|
* Mostly revert "Create console history file in homepath (#8026)" Vas Crabb2021-05-071-4/+1
| | | | | | The change to make the console plugin work is preserved. This reverts commit 25137717c9392d142650fcd679b09c400a2f5c4a.
* Create console history file in homepath (#8026) Szunti2021-05-031-3/+6
| | | | | | | | | | | * Fix console history path, homepath is a core option * Create missing directories recursively in lua plugins. * Add lfs to global environment in a less magical way. require normally doesn't bind the name globally just returns the module, mame sets a preloader that does bind lfs globally, but maybe it's less surprising to do it explicitly
* init.lua: Change "historypath" (only supposed to be used for DATs) to ↵ AJR2021-05-021-2/+2
| | | | "homepath" (where plugin data should reside)
* Save line history for the console and other minor fixes Szunti2021-04-251-12/+42
| | | | | | | Changed a loadstring to load, since lua 5.3 loadstring is not available. Made sure the linenoise thread returns a string. After Ctrl+D stop reading lines.
* More Lua interface cleanup - it's simpler with cleaner underlyng APIs. Vas Crabb2020-12-271-2/+2
| | | | | | | | | | | Made the sound manager mute controls readable, and got rid of system enable since it just controls system mute anyway. This was causing confusion: phantom2 was trying to use both independentlyt casuing the mute bit to be ignored. THe Lua interface changes are mostly changing methods to properties, some renames to make things clearer, and some additional properties for better control over snapshots.
* Fairly significant overhaul of Lua engine and some cleanup. Vas Crabb2020-11-251-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The things that were previously called device iterators are not iterators in the C++ sense of the word. This is confusing for newcomers. These have been renamed to be device enumerators. Several Lua methods and properties that previously returned tables now return lightweight wrappers for the underlying objects. This means creating them is a lot faster, but you can't modify them, and the performance characteristics of different operations varies. The render manager's target list uses 1-based indexing to be more like idiomatic Lua. It's now possible to create a device enumerator on any device, and then get subdevices (or sibling devices) using a relative tag. Much more render/layout functionality has been exposed to Lua. Layout scripts now have access to the layout file and can directly set the state of an item with no bindings, or register callbacks to obtain state. Some things that were previously methods are now read-only properties. Layout files are no longer required to supply a "name". This was problematic because the same layout file could be loaded for multiple instances of the same device, and each instance of the layout file should use the correct inputs (and in the future outputs) for the device instance it's associated with. This should also fix video output with MSVC builds by avoiding delegates that return things that don't fit in a register.
* (nw) Clean up the mess on master Vas Crabb2019-03-261-1/+11
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-11/+1
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* plugins/console: command history (nw) cracyc2019-02-171-1/+11
|
* plugins/console: make the console behave like the docs, unlike the official ↵ cracyc2018-02-071-17/+24
| | | | lua console if you are in a block, entering a newline on a blank line gets you out (nw)
* luaengine: debugger_manager support [Carl] cracyc2017-07-231-0/+20
|
* srcclean (nw) Vas Crabb2017-05-281-1/+1
|
* linenoise: replace linenoise-ng with a different port that is simpler and ↵ cracyc2017-05-131-35/+139
| | | | | | uses a different UTF8 parser [Carl] plugins/console: better completions [Carl]
* srcclean (nw) Vas Crabb2016-11-271-3/+3
|
* plugins/console: much better completions (nw) cracyc2016-11-071-10/+41
|
* plugins/console: further improve completions by removing break chars from ↵ cracyc2016-11-061-11/+6
| | | | linenoise that hide the full type (nw)
* plugins/console: (nw) cracyc2016-11-061-1/+0
|
* lua-linenoise: add preload (nw) cracyc2016-11-061-1/+13
|
* plugins/console: (nw) cracyc2016-11-061-1/+1
|
* plugins/console: better completions (nw) cracyc2016-11-061-5/+14
|
* plugins/console: add lua console [Carl] cracyc2016-11-062-0/+94