summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/hiscore/init.lua
Commit message (Collapse)AuthorAgeFilesLines
* -Improved some Lua APIs: Vas Crabb2023-04-071-5/+6
| | | | | | | | | | | | | | | | * 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.
* 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-6/+6
| | | | | | | | | | | | | | | | | | | | 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: Moved the timecode recording functionality to a plugin. Vas Crabb2021-11-021-3/+3
|
* -nes.xml: Added Latin title from box art for Yeongjaekeom Cocoma games. Vas Crabb2021-10-251-1/+1
| | | | -pluins/hiscore: Bumped version since storage location has changed.
* plugins: Use SPDX short identifiers for licenses in exports (more precise ↵ Vas Crabb2021-10-251-2/+2
| | | | and easier to localise), use CC0 for hiscore plugin rather than CC0.
* Plugin updates: Vas Crabb2021-10-241-51/+109
| | | | | | | | | | | | | | | 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.
* 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-3/+3
| | | | | | | | | | | 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-2/+2
|
* Revert "added support for reading/writing hiscore files from cart images ↵ Vas Crabb2020-02-281-32/+9
| | | | | | | | (#6130)" This reverts commit a77313a98782d0494a5f3b7eb30993e5ac45c4eb. This seems to break high score support on things without cartridges. I think it needs re-thinking.
* added support for reading/writing hiscore files from cart images (#6130) eadmaster2020-02-131-9/+32
| | | | | | | | | | | | | | | | | | | | | | * added support for reading/writing hiscore files from cart images example hiscore.dat entry: ```` nes,smb: Super Mario Bros. (World).nes: Super Mario Bros. (W) [!].nes: @:maincpu,program,7df,4,0,0,ff ```` * store console hiscores in subdirs, added cart hashes support * added back my prev changes * added missing end * using simpler regexpr for hiscore.ini parsing, fixed typo * minor cleanups
* made read_config in hiscore lua plugin more robust Andrea2020-01-041-2/+4
|
* (nw) Clean up the mess on master Vas Crabb2019-03-261-22/+28
| | | | | | | | | | | | | 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-28/+22
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* plugins/hiscore: use emu.time (nw) cracyc2019-02-171-3/+3
|
* plugins/hiscore: start delay (nw) cracyc2019-02-171-22/+28
|
* plugins: handle the case where the ui prepends the list name to the list ↵ cracyc2018-05-021-2/+4
| | | | entry name (nw)
* plugins/hiscore: fix cpu tags and print detailed errors (nw) cracyc2018-04-201-7/+5
|
* hiscore.dat: add handhelds that have high scores (nw) cracyc2018-03-201-2/+2
|
* plugins/hiscore: remove debug print (nw) cracyc2017-12-171-2/+1
|
* plugins/hiscore: add option to hiscore.ini to only_save_at_exit (nw) cracyc2017-11-101-4/+7
|
* plugins/hiscore: use videoram share for missile command scores so madsel ↵ cracyc2017-02-031-1/+6
| | | | isn't disturbed (nw)
* srcclean on lua plugins, too Vas Crabb2016-08-301-18/+18
|
* hiscore: make path expansion work on win32 also (nw) cracyc2016-08-041-4/+2
|
* Revert modifications of 0646ca8 Roberto Benfatto2016-08-041-2/+5
|
* Make hiscore path configurable by ini file Roberto Benfatto2016-08-041-2/+25
|
* Fix .hi file load and write Roberto Benfatto2016-08-041-5/+2
| | | hiscore.dat and hi folder path were not resolved as expected (their path was relative to mame executable, not to the plugin folder). Explicitly writing them as absolute paths gives the desired behavior.
* plugins/hiscore: add optional value to prefill for software that clears ram ↵ cracyc2016-07-081-1/+9
| | | | and add examples (nw)
* hiscore: fix segaxbd games and improve error (nw) cracyc2016-05-291-8/+10
|
* added print_verbose, print_info, print_debug and print_error to lua, and ↵ Miodrag Milanovic2016-04-161-9/+9
| | | | used it instead of print (nw)
* hiscore: checksum all the regions (nw) cracyc2016-03-301-5/+3
|
* hiscore: only you can prevent namespace pollution (nw) cracyc2016-03-291-35/+39
|
* Add ability for notifiers to add at front, fix for hiscore [Carl] Miodrag Milanovic2016-03-291-8/+10
|
* hiscore: even if we can't save before a soft reset, at least load what we've ↵ cracyc2016-03-281-1/+4
| | | | got (nw)
* luaengine: add software name getter (nw) cracyc2016-03-271-7/+14
| | | | hiscore: add support for softlist rom hiscores (nw)
* added hiscore plugin (disabled for now) (nw) Miodrag Milanovic2016-03-221-0/+257