summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire/init.lua
Commit message (Collapse)AuthorAgeFilesLines
* -Improved some Lua APIs: Vas Crabb2023-04-071-2/+4
| | | | | | | | | | | | | | | | * 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.
* -ui/menu.cpp: Don't pass IPT_UI_BACK event to the implementation when ↵ Vas Crabb2023-03-231-4/+9
| | | | | | dismissing the menu. -plugins/autofire, plugins/inputmacro: Don't be so eager to create empty settings folders.
* plugins/autofire, plugins/inputmacro: Use clear_value to release I/O port ↵ Vas Crabb2022-11-061-1/+5
| | | | fields.
* plugins: Reduced amnesia for autofire and inputmacro plugins. Vas Crabb2021-11-051-4/+7
| | | | | | 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.
* frontend: Don't let the non-menus get as far as trying to draw. Vas Crabb2021-11-041-1/+1
|
* plugins: Simplify logic in autofire and inputmacro plugins to try and avoid ↵ Vas Crabb2021-11-041-49/+37
| | | | leaking state across sessions.
* -frontend: Refactored menu event handling and fixed a number of issues. (#8777) Vas Crabb2021-10-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved common code for drawing about box, info viewer, and other text box menus to a base class; removed the last of the info viewer logic and the multi-line item hack from the base menu class. * Added previous/next group navigation for general inputs and plugin input selection menus. * Moved message catalog logic to lib/util, allowing osd and emu to use localised messages. * Made the base menu class use the UI manager’s feature for holding session state rather than a static map and mutex. * Improved menu event handling model, and fixed many issues, particularly with menus behaving badly when hidden/shown. * Added better support for menus that don’t participate in the usual menu stack, like the menuless sliders and the save/load state menus. * Made a number of menus refresh state when being shown after being hidden (fixes MT08121 among other issues). * Fixed indication of mounted slot option in the slot option details menu. * Improved appearance of background menus when emulation isn't running - draw all menus in the stack, and darken the background menus to make the edges of the active menu clearer. * Fixed locale issues in -listxml. -debugger: Made GUI debuggers more uniform. * Added new memory view features to Win32 debugger. * Fixed spelling of hexadecimal in Cocoa debugger and added decimal address option. * Fixed duplicate keyboard shortcut in Cocoa debugger (Shift-Cmd-D was both new device window and 64-bit float format). * Made keyboard shortcuts slightly more consistent across debuggers. -plugins: Moved input selection menu and sequence polling code to a common library. Fixed the issue that prevented keyboard inputs being mapped with -steadykey on. -docs: Started adding some documentation for MAME's internal UI, and updated the list of example front-ends. -Regenerated message catalog sources. For translators, the new strings are mostly: * The names of the inputs provided by the OS-dependent layer for things like fullscreen and video features. These show up in the user interface inputs menu. * The names for automatically generated views. These show up in the video options menu - test with a system with a lot of screens to see more variants. * The input macro plugin UI. * A few format strings for analog input assignments. * A few strings for the about box header.
* 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.
* -Cleaned up CI targets: Vas Crabb2021-10-221-1/+1
| | | | | | | | | | | | | * Restricted Linux CI build to only run on changes to code, translations, software lists, and build scripts. * Restricted Windows/macOS CO to only run on changes to code and build scripts. They provide nothing over Linux for the other stuff. * Added plugin properties and controller file validation to the "hash" workflow. * Added a workflow for building documentation, so pull requests that affect documentation will at least get a basic check in advance. -plugins/autofire: Bumped version as configuration format has changed.
* Tie up a few loose ends: Vas Crabb2021-10-201-6/+6
| | | | | | | | | | | debugger: Octal cheats for octal address spaces. frontend: Pass events for automatically generated menu items to the plugin - they will have index zero. frontend: Don't try calling the data plugin from the main menu if the system isn't starting yet - doing so will prevent the data plugin from loading at all.
* 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.
* plugins/autofire: permit input sequences (nw) cracyc2019-11-201-1/+1
|
* Change autofire config directory to homepath (#5129) Jack Li2019-05-301-8/+1
| | | | | | | | | | * Revert "Used set_folder to avoid hardcoding plugin name in settings path" This reverts commit 76884986fd8630f81cfc838aa42f264fdcec2ea9. * Changed autofire config directory to homepath * Bumped autofire plugin version
* Autofire plugin: Save/load fixes (#5093) Jack Li2019-05-211-4/+29
| | | | | | | | | | | | * Fixed bugs related to reloading roms Soft resets would reload autofire settings without saving them first, causing the settings to be lost. This commit adds a check to only reload from the settings file if loading a different rom than before. Hard resets would leave bad references lying around, causing MAME to crash under certain circumstances (i.e. resetting while in the edit menu and entering the menu again). This commit makes sure to properly clean up and reinitialize menu and button states when resetting. * Used set_folder to avoid hardcoding plugin name in settings path * Bumped autofire plugin version
* Add plugin for autofire (#5050) Jack Li2019-05-141-0/+95
* Hardcoded autofire plugin * Changed register_frame to register_frame_done, removed pause check * Added support for multiple buttons loaded from a file * Implemented saving settings on quit * Fixed multiple keybindings for same button from overwriting each other * Replaced double-quotes with single-quotes * Refactored saving/loading into a separate module * Changed button format to use input_code rather than string token Settings format is unchanged (still saved as string token). * Rewrote table initialization in save/load * Implemented menus * Added helper messages for "on frames"/"off frames"