summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheatfind
Commit message (Collapse)AuthorAgeFilesLines
* -Improved some Lua APIs: Vas Crabb2023-04-071-1/+3
| | | | | | | | | | | | | | | | * 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.
* Input refactoring: Vas Crabb2023-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | osd/modules/input, emu/inpttype.cpp: Made most default joystick assignments supplied by input modules. Input modules take available controls into consideration when generating default assignments. emu/inpttype.ipp: Added a separate "Back" UI input separate from Cancel. You may want an easier to hit combination for moving to the previous menu than for exiting or cancelling input. They both default to Escape. emu/inpttype.ipp: Added a UI Help control. Currently only used by analog inputs menu emu/inpttype.h: Moved I/O port field type enum to its own header and sorted UI controls so they appear in a more logical order. ui: Don't use UI Select to restore defaults - people should be getting used to the UI Clear input by now. UI Select cycles multi-value items instead. ui/inputmap.cpp: Don't use immediate cancel to cycle between clearing and restoring default assignment (use UI Clear instead). osd: Reduced the number of files needing to include the dreaded emu.h. Got some implementation out of headers.
* osd/modules/file: Don't magically substitute environment variables when ↵ npwoods2022-12-171-1/+1
| | | | | | | | opening files. (#9859) * util/options.cpp: Added option types for single and multiple paths. * util/options.cpp: Substitute environment variables in values from defaults and INI files. * ui/dirmenu.cpp: Removed hard-coded list of multi-path options. * plugins: Don't substitute environment variables in path options.
* Lua engine improvements (#9453) Vas Crabb2022-03-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | Made auto-boot script errors and plugin bootstrap errors fatal. Run auto-boot scripts in a sandbox. Globals can be accessed, but not set. The sandbox is cleared on hard reset, but not on soft reset. Added (hopefully) useful to string metafunctions to device_t and address space that show short names and tags. Fixed issues in plugins that surface when strict type checking is enabled, as this means numbers and nil are not automatically converted to strings. Plugins should be tested with debug builds to check for this. Made save item read_block raise an error on invalid arguments rather than returning an empty string, and made it use luaL_buffer directly rather than using the helper wrapper. Changed some more function bindings to use set_function to avoid issues related to ThePhD/sol2#608, and got rid of some unnecessary lambda captures.
* plugins/cheatfind: don't try to call a handler for the previous menu option cracyc2022-03-051-0/+1
|
* plugins: Reduced amnesia for autofire and inputmacro plugins. Vas Crabb2021-11-051-1/+1
| | | | | | Made autofire and inputmacro plugins capable of remembering settings if the host input device for the binding is missing or if an input for a slot device that isn't present is referenced.
* plugins: fix cheatfind menu flags and write xml cheat text to ui container ↵ cracyc2021-11-031-25/+25
| | | | so it's not sideways on rotated screens
* plugins: Use SPDX short identifiers for licenses in exports (more precise ↵ Vas Crabb2021-10-251-1/+1
| | | | and easier to localise), use CC0 for hiscore plugin rather than CC0.
* More user experience improvements: Vas Crabb2021-10-151-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | frontend: Made it possible to cancel a media audit while it's in progress. Also made the media audit multi-threaded so it's faster. frontend: Made the DIP switches in the DIP switch preview clickable. frontend: Made the system and software selection menus leave focus on the same system when clearing the search rather than jumping to the first item. Also fixed a couple of bugs in the logic for keeping the selected item visible. frontend: Fixed a few places that weren't showing localised system names. frontend: Made UI Cancel clear a search in the file manager the same way it does on the system and sofware selection menus. frontend: Made it possible for plugin menus to handle UI Cancel more naturally, backing up to the previous plugin menu rather than dropping straight back to the list of plugins. Updated the autofire, cheat and cheatfind plugins, and fixed a few other issues in the cheatfind plugin. debugger: Made the mount and unmount commands accept instance names as well as brief instance names. Also updated another page of debugger documentation.
* plugins/cheatfind: fix watch and write cracyc2021-02-191-2/+5
|
* More Lua interface cleanup - it's simpler with cleaner underlyng APIs. Vas Crabb2020-12-271-36/+36
| | | | | | | | | | | 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.
* -Lua cleanup and documentation migration checkpoint. Vas Crabb2020-12-161-3/+5
| | | | | | | | | | | | | | | | | | | | * 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/+1
|
* -Lua engine cleanup, input edition: Vas Crabb2020-12-091-1/+1
| | | | | | | | | | | | | | | | | | | * 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.
* frontend: Lua engine improvements. Vas Crabb2020-11-301-2/+2
| | | | | | | | | | | | | | Added methods for enabling and disabling breakpoints and watchpoints, and made debugger views update when breakpoints/watchpoints are manipulated from Lua. Made breakpoints and watchpoints objects rather than tables. (It’s not possible to enable/disable a breakpoint or watchpoint from the object itself, you have to go through its owners' debug interface.) Exposed more device_t members for dealing with child/sibling tags and devices. Also provided a way to get regions/shares/banks from a device using relative tags rather than going through the memory manager with absolute tags.
* plugins: add emu.plugin table to contain plugin exported interfaces cracyc2020-09-131-3/+3
|
* plugins/cheatfind: permit entry of cheat names cracyc2019-11-271-7/+30
|
* plugins/cheatfind: pull https://github.com/mamedev/mame/pull/4618 with some ↵ cracyc2019-11-171-121/+65
| | | | simplifications and bugfixes (nw)
* (nw) Clean up the mess on master Vas Crabb2019-03-261-50/+283
| | | | | | | | | | | | | 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-283/+50
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* srcclean (nw) Vas Crabb2019-02-241-72/+72
|
* Cheat Finder Usability Improvements PugsyMAME2019-02-041-52/+282
| | | | | | 1. Changes visual indications to make it nicer & quicker to use. 2. Adds selectable automatic pause capability to the cheat finder menu. 3. Allows the Test/Write poke to be changed 4. Adds another cheat format capability for cheat.simple (write support only)
* plugins/cheatfind: fix address step when shift is negative (nw) cracyc2019-01-261-2/+5
|
* plugins/cheatfind: fix typo (nw) cracyc2018-12-221-1/+1
|
* plugins/cheatfind: oops (nw) cracyc2018-11-211-1/+1
|
* plugins/cheatfind: fix xml writer (nw) cracyc2018-11-081-1/+1
|
* srcclean (nw) Vas Crabb2018-09-231-1/+1
|
* plugins/cheatfind: aligned search option (nw) cracyc2018-08-291-17/+51
|
* plugins/cheat[find]: fix memshares (nw) cracyc2018-08-271-0/+3
|
* plugins/cheatfind: use explicit integer sizes rather than "native" types (nw) cracyc2018-06-081-10/+10
|
* plugins: handle the case where the ui prepends the list name to the list ↵ cracyc2018-05-021-3/+7
| | | | entry name (nw)
* srcclean and regenerate localisations (nw) Vas Crabb2018-03-251-1/+1
|
* plugins/cheatfind: fix string formatting (nw) cracyc2018-03-231-1/+1
|
* plugins/cheatfind: search any address space (nw) cracyc2018-03-231-15/+16
|
* plugins/cheatfind: read whole block (nw) cracyc2018-01-291-1/+1
|
* plugins/cheatfind: fix (nw) cracyc2018-01-281-12/+41
|
* Revert "Revert "Merge branch 'master' of https://github.com/mamedev/mame"" Firehawke2017-12-131-1/+1
| | | | This reverts commit 54155441e9ba9941e85d80c4834a66376a11e791.
* Revert "Merge branch 'master' of https://github.com/mamedev/mame" Firehawke2017-12-131-1/+1
| | | | | This reverts commit f537428e5a40ba6dde8ca9bf0fe9ae6b1f189ac4, reversing changes made to 0d70d798107d4e4e8fb9f230410aeb1e888d65c5.
* fix sentence building by concatenation, and at the same time collapse two ↵ Vas Crabb2017-12-021-1/+1
| | | | translatable strings to one (nw)
* plugins/cheatfind: oops (nw) cracyc2017-10-151-4/+4
|
* (nw) Improve localisation: Vas Crabb2017-10-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: gettextify localizable strings (nw) cracyc2017-09-031-48/+48
|
* plugins/cheatfind: be more careful with unpack (nw) cracyc2017-06-111-16/+18
|
* srcclean (nw) Vas Crabb2016-11-271-3/+3
|
* luaengine: bugfixes (nw) cracyc2016-11-021-1/+1
|
* srcclean on lua plugins, too Vas Crabb2016-08-301-10/+10
|
* plugins/cheatfind: don't create 100 copies of a large function when we only ↵ cracyc2016-07-191-83/+83
| | | | | | | need one (nw) --- The stub keeps the current match in scope so it can be passed on if necessary
* plugins/cheatfind: name cheats (nw) cracyc2016-07-191-35/+122
|
* plugins/cheatfind: add operand size to simple cheat and write cheats from ↵ cracyc2016-07-141-9/+24
| | | | cheatfind into simple file (nw)
* plugins/cheatfind: don't show arrow when one option (nw) cracyc2016-07-081-6/+4
|