summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire/autofire_save.lua
Commit message (Collapse)AuthorAgeFilesLines
* -ui/menu.cpp: Don't pass IPT_UI_BACK event to the implementation when ↵ Vas Crabb2023-03-231-3/+3
| | | | | | dismissing the menu. -plugins/autofire, plugins/inputmacro: Don't be so eager to create empty settings folders.
* 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.
* plugins: Rewrote timer plugin fixing multiple issues. Vas Crabb2021-11-061-4/+4
| | | | | | | | | | | | | | | | | | | | Added emulated time recording as well as wall clock time. Fixed recording time for multiple software items per system. An incorrect constraint on the database table meant that time was only being recorded for a single software item per system. Detect the "empty" driver so the time spent at the selection menu isn't recorded (you'd get multiple entries for this due to the way options leak when returning to the system selection menu). Included schema migration code to update existing timer plugin databases. Also replaced some unnecessary floating point code with integer maths, added log messages, and made the plugin unload unload its database access code during emulation. Changed other plugins' use of paths with trailing slashes as this causes stat to fail on Windows.
* plugins: Reduced amnesia for autofire and inputmacro plugins. Vas Crabb2021-11-051-6/+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.
* plugins: Simplify logic in autofire and inputmacro plugins to try and avoid ↵ Vas Crabb2021-11-041-3/+4
| | | | leaking state across sessions.
* plugins: Moved the timecode recording functionality to a plugin. Vas Crabb2021-11-021-3/+3
|
* Plugin updates: Vas Crabb2021-10-241-1/+1
| | | | | | | | | | | | | | | Changed the hiscore plugin to save inside the "hiscore" folder in the plugin data directory. The old hiscore path setting has already been removed from MAME for some time. This means the plugin was always saving in the "hi" folder in the working directory with no way to change it, which is problematic on Linux and macOS, particularly for distro packagers. There are lots of plugin and UI changes in this release, so we may as well get this out of the way now. Also made it possible to change the "timed save" option from the Plugin Options menu, and save that in the data folder, too. Documented the input macro plugin. The only undocumented plugins now are the cheat plugin, the cheat finder plugin, and the port name plugin.
* Plugin usability improvements: Vas Crabb2021-10-221-5/+11
| | | | | | | | | | * autofire, inputmacro: Made left/right repeat when held (makes setting long delays/durations easier). * autofire, inputmacro: Added headings for devices in input selection menus (helps when controller buttons have identical names, e.g. AES) * autofire: Made intial selection when moving between menus intuitive, log some errors on saving/loading configuration. * autofire: Fixed two errors in Chinese localisations.
* frontend: Keep cleaning up. Vas Crabb2021-10-111-6/+8
| | | | | | | | | | | | | | | | | | | Got rid of one of the UI audit inputs. There only needs to be one, and the options can be presented in the confirmation menu. Two secret keystrokes is too confusing. Also got rid of the long-obsolete UI Toggle Debugger input. Added audit media button to the toolbar so it's a bit less opaque, and it can be accessed with a mouse/trackball (not just by knowing the key mapping). Made default I/O port names localisable. Made autofire plugin save port fields using the { port, mask, type } tuple, the same way MAME does. Unfortunately this will break existing autofire configuration, but it should be more stable going forward. Added some more UI keys to the default key mappings documentation.
* Mostly revert "Create console history file in homepath (#8026)" Vas Crabb2021-05-071-2/+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-1/+2
| | | | | | | | | | | * 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
* More Lua interface cleanup - it's simpler with cleaner underlyng APIs. Vas Crabb2020-12-271-4/+4
| | | | | | | | | | | 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: Replace environment variable substitution function with core version AJR2020-12-081-1/+1
|
* plugins/autofire: remove leftover code from first attempt at removing empty ↵ Vas Crabb2020-07-191-4/+0
| | | | configuration files
* plugins/autofire: don't save 2bytes cfg file (nw) (#6969) kunikuni2020-07-191-0/+4
| | | | | * plugins/autofire: don't save 2bytes cfg file (nw) * Update autofire_save.lua
* plugins/autofire: don't save 2bytes cfg file (#6960) kunikuni2020-07-171-1/+6
|
* plugins/autofire: permit input sequences (nw) cracyc2019-11-201-2/+2
|
* Change autofire config directory to homepath (#5129) Jack Li2019-05-301-7/+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-1/+7
| | | | | | | | | | | | * 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/+86
* 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"