summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Cleanups for 0.125u3. Aaron Giles2008-05-291-5/+5
|
* Added new option -snapname which lets you provide a template for how snapshot Aaron Giles2008-05-292-0/+68
| | | | | | | names are generated. Added new astring functions astring_del, astring_replace, and astring_replacec to help perform simple search/replace substitution.
* Cleanups and version bump.mame0125u1 Aaron Giles2008-05-151-2/+2
|
* Added uncompressed AVI recording. Extended aviio to be able Aaron Giles2008-05-132-7/+112
| | | | | | | | | | | | | | | | | | | to write RGB bitmaps. Unfortunately, the only option is fully uncompressed, which means the resulting AVIs are *HUGE* and may not play correctly in realtime due to high data rate. The intention is that these uncompressed AVIs are post-processed by other utilities to compress the video and produce a realtime playable result. Added new command-line option -aviwrite which works just like -mngwrite, except it produces AVIs and streams sound to them. Updated documentation accordingly. Shift+F12 still produces MNGs for now, though this might change in the future. Modified fileio.c to retain the full pathname to the file so that it can be queried while the file is open.
* From: Atari Ace [mailto:atari_ace@verizon.net] Aaron Giles2008-04-241-1/+2
| | | | | | | | | | | | | | | | | | Subject: [patch] Eliminate assignments in conditionals Hi mamedev, Assignments in conditionals are never really needed in C and are occasionally just plain bugs (== gets typed as =). As such, it would be good to remove these from MAME so that compilers that warn on this construct can flag the likely bugs (MSVC does this for example). The attached patch does just that. In addition, it refactors some repeated code which had this in taito_f3.c into a couple macros. Using inline functions would unfortunately have required more significant changes, perhaps I'll tackle that another day. ~aa
* From: Justin Kerk Aaron Giles2008-04-121-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: xml_normalize_string() bogusly escapes UTF-8 Various parts of MAME have recently been changed to support UTF-8 strings, so I thought I'd test out using a UTF-8 driver name for the Sam Coupe driver in MESS, just to see if anything breaks. Most things do seem to work well - the name is correctly drawn in the UI etc. One thing that doesn't work properly is the output from -listxml: "Sam Coupe" becomes "Sam Coupé" - each UTF-8 byte is individually escaped, resulting in two gibberish characters instead of the correct character. The culprit here is xml_normalize_string() in src/lib/util/xmlfile.c - the code converts any high-bit byte to an XML escape, which is totally bogus for any encoding but ISO-8859-1 because XML escapes are defined as Unicode codepoints regardless of the document encoding. Fortunately, this is very simple to fix - in fact, it is sufficient just to remove the escaping code and pass through the UTF-8 bytes directly, because UTF-8 is mandated as the default encoding in the XML standard.[1] The attached patch does this. This should be a pretty safe change since as far as I can tell nothing in MAME or MESS currently triggers this code (that is, the string "&#" does not occur in the -listxml output of either). One potentially negative effect is that the ASCII controls which are illegal in XML (0x00-0x19 excepting line breaks and tabs) would no longer be escaped. However, I can't imagine why you would want any in a string destined for -listxml, so IMO that would be a problem elsewhere in the code and having XML parsers barf on it would be desirable. -Justin Kerk
* Cleanups for 0.124. Marked Mermaid as working per checkin comment. Aaron Giles2008-03-241-4/+4
|
* De-deprecat-ed ui.c. Aaron Giles2008-03-211-1/+29
| | | | | Changed xmlfile.c to pass in memory handlers to expat so that our memory overrides are properly managed.
* Normalized function pointer typedefs: they are now all Aaron Giles2008-03-031-4/+0
| | | | | | | | | | suffixed with _func. Did this throughout the core and drivers I was familiar with. Fixed gcc compiler error with recent render.c changes. gcc does not like explicit (int) casts on float or double functions. This is fracking annoying and stupid, but there you have it.
* Reverted change to options.c - not ready for release due to potential ↵ Couriersud2008-03-021-8/+1
| | | | breakage of frontends.
* Rewrote some potentially compiler specific code: Couriersud2008-03-021-1/+8
| | | | | | * added ATTR_FORCE_INLINE to osdcomm.h * added ATTR_NONNULL * moved U64 S64 fram mamecore.h to osdcomm.h * define SETJMP_GNUC_PROTECT() in osdcomm.h for use in ppc602, ppc603
* Various clean ups: Couriersud2008-03-011-1/+1
| | | | | * remove more unreachable code * identify more functions not being used * Changed a number of global functions to being static
* Identified code not used and marked with "#ifdef UNUSED_FUNCTION" Couriersud2008-03-011-2/+4
|
* - Backs out BITMAP8 removal from most places. Zsolt Vasvari2008-02-242-0/+11
| | | | | - I still left drawgfx.c as is, the only piece of code that used any of the functions in drawgfx was s2636.c -- everything else uses 8-bit bitmaps as a replacement for a two dimensional array
* Removes 8-bit bitmap support and converts all previously 8-bit bitmaps to 16-bit Zsolt Vasvari2008-02-242-11/+0
|
* Fixes copy/paste error in comment Zsolt Vasvari2008-02-161-1/+1
|
* From: Atari Ace [mailto:atari_ace@verizon.net] Aaron Giles2008-02-035-1/+9
| | | | | | | | | | | | | Subject: [patch] Fix some comments Hi mamedev, The following patch updates the initialization comments at the top of mame.c and corrects/adds a few filename declarations at the top of a handful of files. ~aa
* - Added deprecat.h that contains some deprecated/discouraged contructs (see ↵ Zsolt Vasvari2008-01-251-1/+0
| | | | | | | | | below) The idea is to create extra work if a driver wants to use these and hopefully gives an incentive to look for an alternate solution - Added #include of deprecat.h that rely on these contructs - Removed a bunch of unneccassary #include's from these files
* Need to actually set the pool fail callback when allocating a pool. Aaron Giles2008-01-191-0/+3
|
* Fixes hang/crash on empty config file. (patch by Wilbert Pol) R. Belmont2008-01-101-1/+1
|
* Copyright cleanup: Aaron Giles2008-01-0641-41/+41
| | | | | | - removed years from copyright notices - removed redundant (c) from copyright notices - updated "the MAME Team" to be "Nicola Salmoria and the MAME Team"
* Rewrote sbrkout driver based on schematics: Aaron Giles2008-01-031-0/+6
| | | | | | | | | | | | | * XTAL-based timing * Correct video timing * Full memory map * Correct memory usage ("zero page" RAM is shared with videoram) * Removed all input hacks * Fixed interrupt generation * Connected coin counters * Added save state support Also fixed incorrect dependency in cdrom.c.
* (From Oliver Stoneberg) Aaron Giles2008-01-034-6/+6
| | | | | | | This is an updated version of my earlier ATTR_PRINTF patch. It was reviewed by Atari Ace to use ATTR_PRINTF properly and fixes even more format errors. I also reviewed the whole source again and it is now used in all possible places.
* (From Atari Ace) Aaron Giles2007-12-311-11/+6
| | | | | | | | The attached patch adjusts most conditional logging in MAME to use the idiom "do { if (VERBOSE) logerror x; } while (0)". This has the benefit that the compiler checks the syntax of the logging even in the case it will be eliminated, and in fact a number of cases here needed adjustments to compile because of this.
* Changes for MAME 0.121u4.mame0121u4 Aaron Giles2007-12-172-2/+2
|
* Changes for MAME 0.121u1.mame0121u1 Aaron Giles2007-12-171-0/+2
|
* Initial checkin of MAME 0.121.mame0121 Aaron Giles2007-12-1789-0/+44773