Commit Graph

14973 Commits

Author SHA1 Message Date
Aaron Giles
e055a551c1 Remove redundant hashing code, use hashing.h instead.
Remove overabstraction in hash.h; it's ok to hard code the
two types of hashes we have. Even adding another one would
not be very difficult. ;)
2012-02-16 21:53:30 +00:00
Aaron Giles
a825e9730d Fix blocksize for FLAC encoder.
Fix writing uncompressed CHDs via createhd.
2012-02-16 18:09:56 +00:00
Miodrag Milanovic
b4c36e74e0 Sync with MESS (no whatsnew) 2012-02-16 14:02:34 +00:00
Miodrag Milanovic
a7343bc628 Moved software checks in front of other checks in clifront
in order to make things more consistent with behaving when cmd line
parameters are sent, also added emuopts support to add newly created
options if some is added with adding software item in slot (no whatsnew)
2012-02-16 13:54:52 +00:00
Miodrag Milanovic
b68594778f Fix compile on 4.6.2 (no whatsnew) 2012-02-16 13:47:34 +00:00
Aaron Giles
f0823886a6 Major CHD/chdman update. The CHD version number has been increased
from 4 to 5. This means any diff CHDs will no longer work. If you
absolutely need to keep the data for any existing ones you have,
find both the diff CHD and the original CHD for the game in question 
and upgrade using these commands:

  rename diff\game.dif diff\game-old.dif
  chdman copy -i diff\game-old.dif -ip roms\game.chd -o diff\game.dif -op roms\game.chd -c none

Specifics regarding this change:

Defined a new CHD version 5. New features/behaviors of this version:
  - support for up to 4 codecs; each block can use 1 of the 4
  - new LZMA codec, which tends to do better than zlib overall
  - new FLAC codec, primarily used for CDs (but can be applied anywhere)
  - upgraded AVHuff codec now uses FLAC for encoding audio
  - new Huffman codec, used to catch more nearly-uncompressable blocks
  - compressed CHDs now use a compressed map for significant savings
  - CHDs now are aware of a "unit" size; each hunk holds 1 or more units
     (in general units map to sectors for hard disks/CDs)
  - diff'ing against a parent now diffs at the unit level, greatly
     improving compression

Rewrote and modernized chd.c. CHD versions prior to 3 are unsupported,
and version 3/4 CHDs are only supported for reading. Creating a new
CHD now leaves the file open.  Added methods to read and write at the 
unit and byte level, removing the need to handle this manually. Added
metadata access methods that pass astrings and dynamic_buffers to
simplify the interfaces. A companion class chd_compressor now
implements full multithreaded compression, analyzing and compressing
multiple hunks independently in parallel. Split the codec 
implementations out into a separate file chdcodec.*

Updated harddisk.c and cdrom.c to rely on the caching/byte-level read/
write capabilities of the chd_file class. cdrom.c (and chdman) now also 
pad CDs to 4-frame boundaries instead of hunk boundaries, ensuring that
the same SHA1 hashes are produced regardless of the hunk size.

Rewrote chdman.exe entirely, switching from positional parameters to
proper options. Use "chdman help" to get a list of commands, and
"chdman help <command>" to get help for any particular command. Many 
redundant commands were removed now that additional flexibility is
available. Some basic mappings:

  Old: chdman -createblankhd <out.chd> <cyls> <heads> <secs>
  New: chdman createhd -o <out.chd> -chs <cyls>,<heads>,<secs>

  Old: chdman -createuncomphd <in.raw> <out.chd> ....
  New: chdman createhd -i <in.raw> -o <out.chd> -c none ....

  Old: chdman -verifyfix <in.chd>
  New: chdman verify -i <in.chd> -f

  Old: chdman -merge <parent.chd> <diff.chd> <out.chd>
  New: chdman copy -i <diff.chd> -ip <parent.chd> -o <out.chd>

  Old: chdman -diff <parent.chd> <compare.chd> <diff.chd>
  New: chdman copy -i <compare.chd> -o <diff.chd> -op <parent.chd>

  Old: chdman -update <in.chd> <out.chd>
  New: chdman copy -i <in.chd> -o <out.chd>

Added new core file coretmpl.h to hold core template classes. For now
just one class, dynamic_array<> is defined, which acts like an array
of a given object but which can be appended to and/or resized. Also
defines dynamic_buffer as dynamic_array<UINT8> for holding an 
arbitrary buffer of bytes. Expect to see these used a lot.

Added new core helper hashing.c/.h which defines classes for each of
the common hashing methods and creator classes to wrap the 
computation of these hashes. A future work item is to reimplement
the core emulator hashing code using these.

Split bit buffer helpers out into C++ classes and into their own
public header in bitstream.h.

Updated huffman.c/.h to C++, and changed the interface to make it
more flexible to use in nonstandard ways. Also added huffman compression
of the static tree for slightly better compression rates.

Created flac.c/.h as simplified C++ wrappers around the FLAC interface.
A future work item is to convert the samples sound device to a modern
device and leverage this for reading FLAC files.

Renamed avcomp.* to avhuff.*, updated to C++, and added support for
FLAC as the audio encoding mechanism. The old huffman audio is still
supported for decode only.

Added a variant of core_fload that loads to a dynamic_buffer.

Tweaked winwork.c a bit to not limit the maximum number of processors
unless the work queue was created with the WORK_QUEUE_FLAG_HIGH_FREQ
option. Further adjustments here are likely going to be necessary.

Fixed bug in aviio.c which caused errors when reading some AVI files.
2012-02-16 09:47:18 +00:00
Olivier Galibert
e6dad37593 sync (nw) 2012-02-16 05:38:17 +00:00
Brian Troha
431af6c164 vamphalf.c: Whitespace fix and allow both Wyvern Wings sets to co-exist. 2012-02-16 01:55:05 +00:00
Couriersud
ebe89a47d3 Fixed testkeys to work with SDL2.0. Keymaps can now contain SDL1.3 and SDL2.0 mappings. Updated km-de.txt as an example. [Couriersud] 2012-02-16 01:38:13 +00:00
Angelo Salese
1ea68a18b1 Haze: speed ups for the new sets, nw 2012-02-16 01:28:28 +00:00
Scott Stone
7eac47988b Two completely different definitions of class sms_state being linked in was never going to end well. Patch from Haze (nw) 2012-02-16 01:10:13 +00:00
Couriersud
19c3217408 Added support for (track)balls to osd/sdl. [Couriersud]
To test it, I used my Logitech Trackball (normally a mouse) and configured it as a joystick.

Prerequisites:

- Locate your linux input device for the trackball. In my case that's /dev/input/event3
- "sudo chmod a+r /dev/input/event3"
- "export SDL_JOYSTICK_DEVICE=/dev/input/event3"

This forces sdl to recognize the trackball as a input device.

-mame64 missile -nomouse -w

Configure the trackball axis. Make sure the mouse pointer is outside the window and window still has keyboard focus - most modern window manager should support this. 

Quit and restart with

-mame64 missile -mouse -now

to hide the mouse. Voila. Works.
2012-02-15 21:40:35 +00:00
Olivier Galibert
19f9947d9f 68040: Teach fsave to pee on the correct side of the tree [O. Galibert] 2012-02-15 17:37:01 +00:00
Miodrag Milanovic
7e5ba6d041 Made aliases for image devices without index, make some exotic cases to work better (no whatsnew) 2012-02-15 15:29:33 +00:00
Miodrag Milanovic
e50e22bd14 Making sure tape stops at end when playing (Apple1 for example), patch by Robbbert (no whatsnew) 2012-02-15 11:34:49 +00:00
Ryan Holtz
5e880d2887 [N64] Partially fix PIF access, several more games recognize cart SRAM, cart FlashROM, cart EEPROM, and controller paks [Ryan Holtz] 2012-02-15 03:10:27 +00:00
Scott Stone
6f1ad5e425 Deleted comments on some model2.c games added recently which are actually 2B-based. (nw) 2012-02-15 02:40:48 +00:00
Brian Troha
a976cc65a8 cps3.c: Documentation update and + white space alignment. - NW 2012-02-15 01:56:05 +00:00
Miodrag Milanovic
5ef9d506a1 Fixed kinst regression, thing is update of fetures should be done on different place now (no whatsnew) 2012-02-14 14:41:27 +00:00
Miodrag Milanovic
37a5826373 pic8259 : when using level trigger mode we are taking current lines on EOI (no whatsnew) 2012-02-14 10:57:29 +00:00
Miodrag Milanovic
cfabeee3ab import from MESS (no whatsnew) 2012-02-14 10:38:12 +00:00
Olivier Galibert
417378e40c mumble (nw) 2012-02-14 09:27:58 +00:00
Scott Stone
0dbc8ff47c Drop duplicate setname from mame.lst (nw) 2012-02-14 02:26:07 +00:00
Scott Stone
53dba65fa2 Misc gambling additions from AgeMAME (nw) 2012-02-14 01:33:01 +00:00
Brian Troha
b9f01e620b New Clone Added - Dynamite Baseball
Sega Model 2 update:

* Dumped and hooked up Dynamite Baseball
* Dynamite Baseball 97 renamed as dynabb97
* Properly renamed 4 MASK ROMs in dynabb97
  to match pcb manual
* Minor cleanups and fixes

Credits:

New NOT WORKING clones added
---------------------------------------------------------------
Dynamite Baseball [Layne, Yohji, hap, Smitdogg, The Dumping Union]
2012-02-14 01:30:42 +00:00
R. Belmont
634199ff6e (nw) 2012-02-13 23:38:49 +00:00
R. Belmont
736dabbca7 New clones added
----------------
Wyvern Wings (alt) [RetroRepair]
2012-02-13 23:32:06 +00:00
R. Belmont
0419f03478 (nw) 2012-02-13 23:23:41 +00:00
Angelo Salese
64ec86dc27 Corrected GFX bitplane order in Springer, fixes colors for the rabbit [MASH] 2012-02-13 19:39:11 +00:00
Angelo Salese
a417762310 NMK16 priority fixes [Raiden II Project Team] 2012-02-13 19:36:59 +00:00
Angelo Salese
01d6981be6 new WORKING game
----------------
Oozumou - The Grand Sumo (DECO Cassette) [Charles MacDonald, Dr. Spankenstein, Kevin Eshbach, T. Huff, SteveS, E. Page-Hanify, Hikari, ArcadeDude, F. Bukor, N. Francfort, jmurjr, arcade-history.com, ThumB, Hurray Banana, Paratech, Xiaou2, Cornishdavey, A. Costin, M. Ponweiser, Tormod, Rambo, Smitdogg, The Dumping Union]

new clones
---------------
JoJo's Bizarre Adventure (990927) [Layne, Smitdogg, The Dumping Union]
2012-02-13 19:29:50 +00:00
Phil Bennett
02e2d91b85 Steel Talons: Fixed controls and removed the MSP speedup hack which was causing the game to reset at certain points. 2012-02-13 18:48:41 +00:00
Ryan Holtz
f91cdc62dc - Various N64 stability fixes. [Ryan Holtz] 2012-02-13 16:12:01 +00:00
Miodrag Milanovic
b03f10bd40 Better leave this one back (no whatsnew) 2012-02-13 14:06:06 +00:00
Miodrag Milanovic
c923ea571e pic8259 - this should fix some pic issues (no whatsnew) 2012-02-13 12:59:06 +00:00
Michaël Banaan Ananas
c7fc84b79d MT bug 04672 2012-02-13 09:59:59 +00:00
Miodrag Milanovic
b891216773 Sync with MESS, floppy work by OG (no whatsnew) 2012-02-13 08:12:24 +00:00
Miodrag Milanovic
65392a2135 Sync with MESS (no whatsnew) 2012-02-13 07:58:10 +00:00
Couriersud
5344166555 updated sdl os-core to compile against stock SDL-2.0 [couriersud].
- The SDL team has moved from 1.3 to 2.0. At the same time, changes were made to allow SDL1.2 and SDL2.0 to coexist. All SDL2.0 include files are now in /usr/include/SDL2.
- Added sdlinc.h to avoid having tons of #ifdef .. #include in the code.
- Scalemode is no longer a per-window setting
- Fixed a bug in YUV rendering.
- Use SDL_GetClipboard (SDL2.0)
- Updated README_SDL20.txt

Currently, SDL 2.0 is only supported on *nix. Volunteers welcome.
2012-02-12 20:59:24 +00:00
R. Belmont
d75dbab0de Add LZMA codec and .7z container support [David Haywood, R. Belmont] 2012-02-12 17:55:51 +00:00
Michaël Banaan Ananas
f594641814 new clone added
-----------------
Eyes (bootleg set) [f205v, Antro]
2012-02-12 17:24:36 +00:00
Michaël Banaan Ananas
69f6e6f6a2 artwork is now clickable 2012-02-12 15:49:27 +00:00
Michaël Banaan Ananas
96e8e05a53 some small cleanups when i was looking for dipswitch(es) (couldn't find any tho) 2012-02-12 15:19:20 +00:00
Olivier Galibert
ad7b1b3400 sync (nw) 2012-02-12 09:45:38 +00:00
Michaël Banaan Ananas
0603aba914 (couple of .lay tweaks) 2012-02-12 02:18:06 +00:00
Ryan Holtz
ac580c4848 Turn LOG_WAITS back off in polynew.h, nw 2012-02-11 19:22:43 +00:00
Michaël Banaan Ananas
b92eeb18e4 redone 30test layout, resembling the cabinet more 2012-02-11 17:01:46 +00:00
Michaël Banaan Ananas
755c23a8e7 add support for simple text alignment in layout files, defaulting to center
eg. align to the left of the textbox like this:
<text string="hello there" align="1">
2012-02-11 16:53:30 +00:00
Ryan Holtz
4c31089ae1 Missed a file, oops, nw 2012-02-11 16:51:48 +00:00
Miodrag Milanovic
5596c512fc Sync core fixes from MESS done by OG (nw) 2012-02-11 16:15:39 +00:00