summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/lib.lua
Commit message (Collapse)AuthorAgeFilesLines
* Move UTF8_xxx string literal macros to new header in lib/util AJR2022-09-251-0/+1
|
* cdrom_file: classify. Could use more internal work, but it's a step Olivier Galibert2022-04-011-2/+0
|
* Addressed some Lua scripting pitfalls. (#9294) Vas Crabb2022-02-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Addressed pure virtual function call crash on end of emulation session if you haven't explicitly removed all address space taps, memory corruption on end of emulation session if you haven't explicitly removed all address space change notifiers, and symbol being garbage-collected out from under you while you have parsed expressions or other symbol tables that depend on them. Removed the copy constructor for parsed expressions as the underlying C++ copy constructor appears to be broken, and simplified symbol table constructors. Also made symbol table add methods return the new entry to avoid the need for an extra lookup. Fixed breakpoint/watchpoint objects being inappropriately copied into the tables returned by bplist() and wplist(), allowing the enabled property to be modifiable for breakpoint and watchpoint objects in Lua. Fixed drivers and devices causing a new memory pass-through handler to be allocated on each soft reset, and fixed multiple instances of taps being installed in the event the machine is reset before the tap is removed. Added classes for managing broadcast subscriptions, and adapted address spaces to use this for change notifications.
* -frontend: Refactored menu event handling and fixed a number of issues. (#8777) Vas Crabb2021-10-311-0/+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.
* Overdue internal UI enhancements (#8674) Vas Crabb2021-10-091-0/+6
| | | | | | | | | | | | | | | | * frontend: Added support for message context to localisations. * frontend: Added string_view versions of the message lookup functions. * frontend: Added a few more folder options to the internal UI. * emu/softlist.cpp: Use more appropriate containers. * Switched to Python 3 by default - this will become a requirement. * Updated msgfmt.py for message context support. * frontend: Show all software item info in the internal UI. * frontend: Search alternate titles in software selection menu. * 3rdparty/utf8proc: Updated to v2.6.1 (has several fixes). * frontend: Added software filters for common info fields. * frontend: Allow UI manager to hold onto persistent session data. * frontend: Cache software lists for eight machines. * frontend: Added support for loading localised system names. * frontend: Add UI for selecting localised system names.
* util: Further API cleanups: (#8661) Vas Crabb2021-10-051-3/+7
| | | | | * Turned `core_file` into an implementation of `random_read_write`. * Turned PNG errors into a standard error category. * Added a helper for generating what look like derived classes on-the-fly.
* Move endianness type into lib/util header AJR2021-08-311-0/+1
|
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-0/+9
| | | | | | | | | Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter. unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename. Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums. Allow mounting TI-99 RPK from inside archives.
* -util: Retire legacy object pool, removing vestigial references. Vas Crabb2021-06-241-2/+0
| | | | | | | Thanks to AJR, Ivan Vangelista and Aaron Giles for helping make this possible. Also fixed debug build of imgtool.
* coretmpl.h: Move lru_cache_map to separate header AJR2021-02-031-0/+1
|
* Various improvements to image file handling: Vas Crabb2020-10-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Moved MS DIB parser out of ICO file reader and made it available for artwork and layout images. Added more efficient I/O and better error checking for JPEG file loading (MAME will no longer exit immediately on a bad JPEG file). Made caller responsible for opening files for loading images, to avoid decompressing images used in ZIP/7z artwork multiple times. Added support for JPEG and Windows DIB to picture_image_device. Added support for SVG image files in external artwork. Added support for using I/O port value for animation state and masking animation state values. Made bounds elements more flexible in layouts. Reworked headers to reduce dependencies. Updated layout file format documentation.
* util: re-implement SHA-1 and get rid of the two third-party implementations (nw) Vas Crabb2020-04-131-3/+0
|
* pre-fill things allocated with operator new with 0xcd in debug builds (value ↵ Vas Crabb2019-11-251-0/+1
| | | | can be changed by setting global g_mame_new_prefill_byte with a debugger) - this is gonna hurt performance, but it will help catch issues exposed when we remove pre-clearing before constructing devices
* dvdisasm: Overhaul [O. Galibert] Olivier Galibert2017-11-261-0/+2
| | | | | | | | Disassemblers are now independant classes. Not only the code is cleaner, but unidasm has access to all the cpu cores again. The interface to the disassembly method has changed from byte buffers to objects that give a result to read methods. This also adds support for lfsr and/or paged PCs.
* Lua scripts cleanup. dankan18902017-05-141-2/+1
|
* Fixed building using system utf8proc Julian Sikorski2017-01-261-0/+1
|
* Added initial HTTP/HTTPS webserver/websocket server support (nw) Miodrag Milanovic2017-01-041-0/+13
|
* As promised, removing this part of code since it is used for compilers ↵ Miodrag Milanovic2016-11-231-32/+0
| | | | check, no need for this to be in release (nw)
* Added basic HTTP server, not active yet, based on ASIO example with small ↵ Miodrag Milanovic2016-11-071-0/+32
| | | | refactoring included (nw)
* While I'm causing full recompiles all the time, reduce necessary number of ↵ Vas Crabb2016-08-271-0/+2
| | | | instantiations of parts of string formatting engine
* made proper formats compiled only if needed (nw) Miodrag Milanovic2016-08-121-333/+0
|
* Compile netlist and lua only if used (nw) Miodrag Milanovic2016-08-121-1/+2
|
* Removed src/lib/util/cstrpool.[cpp|h]; it is no longer used Nathan Woods2016-08-051-2/+0
|
* Moved src/emu/hash.[cpp|h] into src/lib/util, and namespaced that code (and ↵ Nathan Woods2016-07-231-0/+2
| | | | hashing.[cpp|h]) into util::
* renamed bbc_dsk to acorn_dsk Nigel Barnes2016-07-161-2/+2
| | | | | | | - split ssd/dsd formats - added opus ddos format - split adfs into oldmap and newmap formats for archimedes - logging
* Introduced src/lib/util/timeconv.[c|h], moved code from un7z.cpp into it, ↵ Nathan Woods2016-06-261-0/+2
| | | | and implemented win_time_point_from_filetime() in terms of it
* remove all usages of tagmap Miodrag Milanovic2016-06-181-1/+0
|
* e01: added acorn filestore floppy format and softlist Nigel Barnes2016-06-051-0/+2
|
* Move a few odds and ends out of the emu core AJR2016-04-231-0/+2
|
* screen: POC||GTFO of svg rendering from inside the rom. [O. Galibert] Olivier Galibert2016-04-041-0/+1
| | | | | | | | It's damn slow, ~50ms/frame on cdkong. Caching and/or hw accel will solve that easily. It doesn't look very good, nanosvg need better anti-aliasing. It also doesn't do texturing very well and images not at all, so some of our current svgs won't look good. But all that's fixable.
* fix include dirs (nw) Jeffrey Clark2016-03-291-0/+1
|
* Extend system library support (nw) Jeffrey Clark2016-03-281-16/+3
| | | | | | | Extend USE_SYSTEM_LIB_* to support providing the library name and include directory. To link against system specific lib names and header path: (ref #711) USE_SYSTEM_LIB_LUA=lua5.3:/usr/include/lua5.3
* * Support *n conversion in stream_format/string_format Vas Crabb2016-03-011-0/+2
| | | | | | | | | * Make stream_format return characters printed * Add iostreams with std::vector storage * Move to type-safe templates for logerror and popmessage * Remove now-unnecessary I64FMT from calls to logerror/popmessage * Put some lib/util stuff in util:: namespace * Some fixes to Japanese translation
* removed corealloc.cpp file from build (nw) Miodrag Milanovic2016-01-081-1/+0
|
* tagged_list without tagmap_t (nw) Miodrag Milanovic2015-12-111-1/+0
|
* Added addprojectflags function and added -Wsuggest-override for all that are ↵ Miodrag Milanovic2015-12-061-0/+4
| | | | | | not 3rdparty projects. It is place where all additional checks we should put
* bbc: preliminary support for FSD format. Nigel Barnes2015-11-151-0/+2
|
* Added info header at the top of each .lua file (nw) Scott Stone2015-11-141-0/+8
|
* move formats to proper place (nw) Miodrag Milanovic2015-11-121-0/+2
|
* Remove not longer needed ForceCpp flag (nw) Miodrag Milanovic2015-11-081-5/+0
|
* update build scripts for rename c - > cpp (nw) Miodrag Milanovic2015-11-081-183/+183
|
* i8271: modernize [Carl] cracyc2015-09-281-0/+2
|
* reorganized scripts according to new structure (nw) Miodrag Milanovic2015-09-131-0/+3
|
* mfmhd: Introduced format definition, now generally available. Michael Zapf2015-08-021-0/+2
|
* guab: Updated driver to use the standard wd floppy controller. Dirk Best2015-07-091-0/+2
| | | | | | | This also means that it now uses the software list system instead of loading the floppy disk image into a memory region. To run the driver use: "mame guab -flop guab3" now. You may also just start the driver, then choose a floppy disk image from the builtin file manager.
* no need for subdir for these projects, those are same for all mame builds (nw) Miodrag Milanovic2015-06-221-2/+0
|
* move some legacy formats over to imgtool since it's now the only user Dirk Best2015-06-101-4/+0
|
* vtech1_dsk: remove, no longer used Dirk Best2015-06-081-2/+0
|
* atarist_dsk: remove, no longer used Dirk Best2015-06-081-2/+0
|
* Added the ability to use system flac, jpeg, lua, sqlite3, portmidi and zlib ↵ Julian Sikorski2015-06-061-2/+11
| | | | based on wallyweek's work