summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/init.lua
Commit message (Collapse)AuthorAgeFilesLines
* Expose a couple more things to Lua so the plugins can show the actual key ↵ Vas Crabb2020-12-271-3/+4
| | | | mapped to UI clear.
* More Lua interface cleanup - it's simpler with cleaner underlyng APIs. Vas Crabb2020-12-271-44/+44
| | | | | | | | | | | 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.
* More Lua engine clean-up and documentation, resulting in core cleanup. Vas Crabb2020-12-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More Lua interface cleanup, additional properties and methods, and documentation migration/expansion. Emulated switch inputs can have "not" codes applied to host input axis directions. It works the same way as host switch inputs - push twice for a "not" prefix. Input polling helpers no longer need to store state in the input device items. There’s less leakage, and less chance of things interfering with each other. Allow snapshot view options to be configured through the internal UI via the video options menu. Made video options menus place initial focus on the currently selected view item. Removed some crud from the menu base class. Fixed the description of the "snapview" option. The value to get raw screen pixels was changed to "native" a long time ago but the description was never updated. Re-arranged the Golden Poker button lamps so that the 6-button layouts for Jolli Witch and Wild Witch make sense. In 6-button mode, the hold buttons double as bonus game and bet buttons, but the lamp outputs don't change. The simplest way to deal with this without requiring the user to switch views or using layout scripting is to place the dedicated buttons directly below the hold buttons that correspond to them. Removed some software list data that was redundantly copied into device_image_interface (m_supported was never even set, so it didn't even work), and made crc() work better (previously it wasn't recalculuated after unloading and loading another image). Made strformat.h and devcb.h play nicer with C++17 and pre-standard C++20. Format precision now correctly limits the length of string views. Confirmed that strformat.{h,cpp} works with pre-standard C++20 support in GCC 9. Removed an auto_alloc from cpu/arm7.
* -Lua cleanup and documentation migration checkpoint. Vas Crabb2020-12-161-13/+17
| | | | | | | | | | | | | | | | | | | | * Cleaned up some more of the Lua inteface. Mostly replacing methods with properties, some consistency fixes, a few renames, some more exposed functionality, and a couple of properties that have no business being set from scripts made read-only. * Moved a lot more Lua documentation out of source comments into the documentation, and expanded on it in the process. * Got more UI code out of the input manager. * Changed input sequence poller to a polymorphic class where you specify your intention upfront. * Changed the cheat plugin to use UI Clear to clear hotkey assignments and leave them unchanged if the user starts assignment but doesn't press any switches. * Ported AJR's fix for over-eager double-click recognition from SDL to Windows OSD. -goldnpkr.cpp: Cleaned up inputs, using standard keyout and payout types and key assignments.
* plugins: Replace environment variable substitution function with core version AJR2020-12-081-2/+2
|
* -Lua engine cleanup, input edition: Vas Crabb2020-12-091-8/+10
| | | | | | | | | | | | | | | | | | | * Modernised and cleaned up Lua bindings for input classes. * Exposed the input_sequence_poller class to Lua and updated the autofire and cheat plugins to use it, rather than continuing to pretend it's part of the input manager. * Exposed more of the natural keyboard manager, including the ability to enable/disable individual keyboard and keypad devices like you can from the keyboard mode menu. * Exposed a few more things on ioport_port and input_device. -plugins/cheat: Fixed menu item not updating visually when disabling a cheat with UI Left. -plugins/cheatfind: Fixed not finding the first screen after screen enumerator was exposed as an object rather than using a table. -bwidow.cpp, pacman.cpp: Minor cleanup to recent changes.
* Disable SOUND_DEBUG for non-debug builds, and srcclean Vas Crabb2020-09-271-1/+1
|
* Fixing a cheat plugin bug npwoods2020-09-191-0/+1
|
* plugins/cheat: small simplification cracyc2020-09-151-21/+20
|
* plugins/cheat: copy the cheat table to not expose internal state (#7238) cracyc2020-09-151-4/+42
|
* plugin/cheat: subtract min before dividing cracyc2020-09-131-1/+1
|
* plugin/cheat: check value is a mulitple of step cracyc2020-09-131-1/+5
|
* plugin/cheat: flesh out the exported interface a bit more cracyc2020-09-131-91/+107
|
* plugins: add emu.plugin table to contain plugin exported interfaces cracyc2020-09-131-1/+1
|
* plugins/cheat, plugins/autofire: only time out input sequence entry if ↵ Vas Crabb2019-11-221-1/+1
| | | | nothing is entered (nw)
* plugins/cheat: don't clear error message (nw) cracyc2019-11-201-1/+5
|
* plugins/cheat: show pressed buttons when setting hotkeys (nw) cracyc2019-11-201-2/+15
|
* plugins/cheat: add time functions to cheat sandbox cracyc2019-09-091-0/+1
|
* plugins/cheat[find]: fix memshares (nw) cracyc2018-08-271-0/+14
|
* plugins: handle the case where the ui prepends the list name to the list ↵ cracyc2018-05-021-3/+7
| | | | entry name (nw)
* plugin/cheat: use print_error to make testing easier (nw) cracyc2018-03-051-1/+1
|
* srcclean (nw) Vas Crabb2017-10-221-1/+1
|
* (nw) Improve localisation: Vas Crabb2017-10-031-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change makefile rules to treat mame.pot as a target so rules can depend on it * Put mame.pot inside the build directory so it will get cleaned * Couldn't get xgettext to scrape lua and C++ in the same command and still remove stale strings * Use larger strings and format specifiers to fix some localisation issues - Issue with "None" lacking context in Russian and Turkish translations - Issue with "Not implemented" changing depending on the noun in Serbian - Issues with lua plugins not allowing for languages with different grammar/punctuation Strings that need to be translated after this change - most of these are existing text that's been made into larger chunks or reworded slightly: "Mechanical Machine\tYes\n" "Mechanical Machine\tNo\n" "Requires Artwork\tYes\n" "Requires Artwork\tNo\n" "Requires Clickable Artwork\tYes\n" "Requires Clickable Artwork\tNo\n" "Support Cocktail\tYes\n" "Support Cocktail\tNo\n" "Driver is BIOS\tYes\n" "Driver is BIOS\tNo\n" "Support Save\tYes\n" "Support Save\tNo\n" "Screen Orientation\tVertical\n" "Screen Orientation\tHorizontal\n" "Requires CHD\tYes\n" "Requires CHD\tNo\n" "ROM Audit Result\tOK\n" "ROM Audit Result\tBAD\n" "Samples Audit Result\tNone Needed\n" "Samples Audit Result\tOK\n" "Samples Audit Result\tBAD\n" "ROM Audit Disabled\t\n" "Samples Audit Disabled\t\n" "Activated: %s = %s" "Activated: %s" "Enabled: %s" "Disabled: %s" "%s added" "Default name is %s" "Cheat written to %s and added to cheat.simple" "Unable to write file\n" "Ensure that cheatpath folder exists"
* plugins/cheat: input sequence cheats [Carl] cracyc2017-10-021-1/+74
|
* plugins: gettextify localizable strings (nw) cracyc2017-09-031-19/+19
|
* luaengine: translation support [Carl] cracyc2017-09-041-1/+1
|
* plugins/cheat: oops (nw) cracyc2017-09-031-1/+1
|
* srcclean (nw) Vas Crabb2017-08-271-4/+4
|
* plugins/data: add marp scores [Carl] cracyc2017-07-301-1/+2
|
* plugins/gdbstub: WIP gdbstub plugins [Carl] cracyc2017-07-261-11/+16
|
* plugins/cheat: make sure bp function is run only one per hit (nw) cracyc2017-07-241-1/+4
|
* plugins/cheat: catch errors in cheat scripts and prelim break/watch support ↵ cracyc2017-07-241-30/+140
| | | | [Carl]
* plugins/cheat: popmessage for hotkey setting (nw) cracyc2017-07-141-0/+4
|
* plugins/cheat: create dirs (nw) cracyc2017-07-141-2/+19
|
* plugins/cheat: poll for setting hotkeys [Carl] cracyc2017-07-131-138/+14
|
* plugins/cheat: add ui support for joystick hotkeys [Carl] cracyc2017-07-111-30/+71
|
* srcclean (nw) Vas Crabb2017-06-251-2/+2
|
* plugins/cheat: oops (nw) cracyc2017-06-121-1/+1
|
* plugins/cheat: oops (nw) cracyc2017-06-031-1/+5
|
* plugins/cheat: add hotkey support [Carl] cracyc2017-06-021-51/+223
|
* srcclean on lua plugins, too Vas Crabb2016-08-301-13/+13
|
* mark working cracyc2016-07-131-2/+8
| | | | | | | | ----------- Digital Equipment Corporation VT240 [Carl] vt240: fix scroll and complement (nw) plugins/cheat: add simple cheat file format (nw)
* plugins/cheat: better error (nw) cracyc2016-07-031-9/+15
|
* plugins/cheat: don't turn off unless on (nw) cracyc2016-06-211-2/+2
|
* plugins/cheatfind: reverse operator order and add value comparison (nw) cracyc2016-04-301-8/+5
|
* plugins/cheat: handle multiple cheat paths and missing dir in write back (nw) cracyc2016-04-301-3/+5
|
* plugins/cheat*: indent the output (nw) cracyc2016-04-281-1/+1
|
* plugins/layout: layout embedded script helper plugin [Carl] cracyc2016-04-271-0/+1
| | | | | | | | luaengine: callbacks for plugins (nw) rendlay: layout tag external handler support (nw) fidel_csc and mdndclab: example layout scripts (nw) -- Neither layout script is complete. The chess doesn't handle castling or en passant and the Dungeons and Dragons only does the walls.
* plugins/cheat*: various changes (nw) cracyc2016-04-241-0/+4
|
* plugins/cheat: make ram work properly (nw) cracyc2016-04-231-8/+5
|