summaryrefslogtreecommitdiff
path: root/emulators/mame/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2016-03-04 12:47:13 +0000
committerwiz <wiz@pkgsrc.org>2016-03-04 12:47:13 +0000
commit991aa959cbbb41854cbac0bb9fe78a4f4f69a322 (patch)
tree9109c219f0e9602ae5da4038aa8e7c687e24f361 /emulators/mame/patches
parentb6e78bb28d8e5afeab2c3cd96e5049afb58e3e99 (diff)
downloadpkgsrc-991aa959cbbb41854cbac0bb9fe78a4f4f69a322.tar.gz
Update mame to 0.171.
0.171 ------- MAMETesters Bugs Fixed ---------------------- - 06137: [Crash/Freeze] (maygay1bsw.c) Many sets in maygay1bsw.cpp: Several games are crashing while "initializing.." (Osso) - 06135: [Interface] ROM-less games cannot be started from internal UI - 02327: [Graphics] (megasys1.c) chimerab: Priorty PROM is missing. (David Haywood) - 06134: [Misc.] all games with LED outputs: ledutil no longer works (micko) - 06139: [Color/Palette] (x68k.c) x68k [akumajo]: Some elements turn blue (crazyc) Source Changes -------------- -New video chip support : Thomson EF9364 / Sescosem SFF96364 [Jean-Francois DEL NERO] -Pyon Pyon Jump: [Roberto Fresca] Create derivative machine driver. Hooked the V9938 Yamaha VDP. Added the DIP switches bank #1 Hooked the system input ports. Added support for Yamaha YM2149. Decoupled the YM2149 data read. Correct bankswitching. Added sound latch & output port. Version added to the game description. Proper inputs + DIP switches support. Second CPU IRQ ack. Promoted to working. OKI M5205 ADPCM samples support. -pulsarlb: Added extra bios [Robbbert] -Modernized sound volume setting code in various Atari drivers [AJR] -Fixed F3 soft-reset on Arkanoid sets with MCU [Lord Nightmare] -osdmini: Fixes build issues [Stuart Carnie] -Replaced osd_lock with std::mutex [Miodrag Milanovic] -Software list entries can now supply slot option defaults [AJR] -i8271: Unload head after programmed revolutions [Nigel Barnes] -apple2: Fix parallel card ACK handling, Print Shop almost works with the lx810l now. [R. Belmont] -Nibble driver: Rewrote the whole driver. Added video hardware, preliminary machine driver and memory map. Decoded the graphics. [Roberto Fresca] -Made anonymous timer non-anonymous in arkanoid.cpp, fixes savestates for the sets using the original Taito MCU code [Lord Nightmare] -Allow load/saved state slots to be bound to joystick buttons [Victor Vasiliev] -Dumped "Dead or Alive 2 (Rev A)", match existent set, fix game and EPRROM names [Smitdogg, The Dumping Union] -Dumped "King of Fighters XI" EN, match JP one, add notes [Brizzo] -Substantial improvements to Web Audio sound backend for Emscripten port. [Grant Galitz] -disound: Don't crash on state load when the mixer is disabled by lack of inputs (misconfiguration or missing samples) [O. Galibert] -Initial import of MEWUI to MAME [Maurizio Petrarota] -External DATs grouped into a single view. [Maurizio Petrarota] -New video chip support: Thomson EF9364 / Sescosem SFF96364 [Jean-Francois DEL NERO] -z80.cpp: Added a debug mechanism for /WAIT pin assertion mechanism (enable with STALLS_ON_WAIT_ASSERT in CPU core), and hooked it up to Night Gal driver as a quick example. [Angelo Salese] -Make octal flag part of address_space/address_space_config [AJR] -Added unknown NAOMI development(?) board BOOT ROM [coolmod] -Initial support for BGFX [Ryan Holtz, Dario Manesku, Branimir Karadic, Miodrag Milanovic] -Significant speed improvements to the BGFX renderer. [Ryan Holtz] -Added basic JSON-based single-pass shader effect support to BGFX renderer. [Ryan Holtz] -Added hat trick hero 93 PALs [Alex Cmaylo] -catnmous: graphical improvements [Vernimark, Vas Crabb] * Redumped Cat and Mouse colour sprite ROM as the correct size * Implement sprite ROM banking * Improve colour palette using resistor values from board photographs -laserbat: fix inadvertently swapped TMS organ chip clocks (fixes music) [Vas Crabb] -Make Zaccaria 1B11107 and 1B11142 boards devices and share common parts [Vas Crabb] -apple1: Completely rewrote the driver in modern idioms. All functionality should be the same. [R. Belmont] -Descrambled the ROM on the Xerox NoteTaker, and mapped it in the correct areas to make it start to boot. [Lord Nightmare] -Xerox NoteTaker: Corrected CPU Clock speed, and map at least some of RAM [Lord Nightmare] -electron: Added cassette softlist and implemented BREAK key [Nigel Barnes] -Xerox NoteTaker: Corrected RAM amount. Attached the pic8259 interrupt controller, though no interrupts are attached to that yet. Added documentation of i/o writes during the boot process. [Lord Nightmare] -vigilant.cpp: Added video timing PROM. [Pasky, caius] -Videosnaps patch (additional file to write: gamename.inp.timecode) [Michele Fochi] Added new options: * [no]exit_after_playback (default=no) * [no]record_input (default=no) Added new UI shortcut to save current timecode (default F12) Translated variable names and comments to english language -Sord m5 driver update [Ales Dlabac] added support for RAM expansions EM-5,64KBI,64KBF,64KRX added m5p_brno mod Sord m5+1024kB ramdisk+cp/m 2 cart slots -Moon Light (Set 2): Fix the program ROM addressing. This fix the corrupt graphics in the double-Up feature. [Roberto Fresca] -Moved JANGOU_BLITTER into a device [Angelo Salese] -NCS8105 ADCX opcode is actually an ADDX, fixes gfx garbage in nightgal.cpp [Angelo Salese] -Corrected ROM labels and removed endian-swap during descramble for notetaker in favor of loading ROMs the other way round. Add ROM locations. [Lord Nightmare] -Xerox NoteTaker: Implement ROM/RAM overlay as per schematics. Documented Address map and part of I/O map. [Lord Nightmare] -Note that one of the buccaneers proms matches the vigilante video sync prom [caius, David Haywood] -Moon Light: Rearranged and split by program. This generated new sets due to the hidden extra programs in the program ROMs. [Roberto Fresca] -Xerox NoteTaker: Added the IO Processor firmware v1.50 as an alt bios after typing it from the assembly source listing on bitsavers. Added two PROMs as NO_DUMP. Updated comments and history a bit, but needs further improvement. [Lord Nightmare] -Updated Xerox NoteTaker documentation and history section, with cited sources. [Lord Nightmare] -Cherry Master v1.10: Fixed inputs / DIP switches. [Roberto Fresca] -Xerox NoteTaker: Finished documenting the I/O CPU's I/O ports, updated history documentation a bit more [Lord Nightmare] -Figured out algorithm and replaced SnowBoard Championship lookup table with proper emulation of device [Samuel Neves & Peter Wilhelmsen] -chihiro.c: Redumped "Sega Network Taisen Mahjong MJ 2 (Rev G)" [ANY] Re-parented set -mitchell.cpp: Dumped a blockjoy board and noted a rom label difference [Andrea Palazzetti] -snotec.xml: Added 3 new cart dumps. [TeamEurope] -Extended LUA API [Jeffrey Clark] -Support for the AMPAL18P8 to the jedutil tool. [Kevin Eshbach] -Improved cross compile support [Jeffrey Clark] -Hp9845: Added tape driver [F. Ulivi] -r9751: Add more DMA registers for serial and floppy [Brandon Munger] -slapstic: One small step toward slapstic modernization [AJR] * Make chip number part of device configuration, not init param * Correct mainpcb slapstic number in racedrivpan * Remove many unused slapstics -c64_cart.xml, c128_cart.xml: Added some diagnostic carts. [World of Jani] -COM5016/COM8116 Baud Generator: Added a bunch more divisor tables and notes [Lord Nightmare] -Apollo changes: [Hans Ostermeyer] * Unified logging format in associated devices * Use correct raw video modes -Xerox NoteTaker: Finished IOCPU memory map documentation. Hooked up the two UARTS. Begin hookup of the screen/CRTC. Fixed an issue with writes to ROM-mapped areas shadowing to RAM. Added 960KHz xtal for the keyboard UART. [Lord Nightmare] -AY-3-1015 UART: Fixed two swapped pin functions. [Lord Nightmare] -Added multi-language support for MAME [Miodrag Milanovic] -sq1: Much-improved LCD and front panel button support. [Parduz, R. Belmont] -weddingr: better input port descriptions [Vas Crabb] -Added Chinese Simplified and Chinese Traditional translation [YuiFAN] -Added German translation [Raf Tacker] -Added Japanese translation [Fujix] -Added Italian translation [Angelo Salese,Antonio Paradossi,Fabio Priuli] -Added Portuguese (Brazil) translation [Ashura-X] -pacman.cpp, meadwttl.cpp: small fix of game years for Novomatic's Cannon Ball and Meadows' Meadows 4 in 1, respectively, to synchronize with history.dat [Antonio Paradossi]
Diffstat (limited to 'emulators/mame/patches')
-rw-r--r--emulators/mame/patches/patch-3rdparty_bx_include_bx_thread.h12
-rw-r--r--emulators/mame/patches/patch-3rdparty_libuv_src_unix_netbsd.c14
-rw-r--r--emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake33
-rw-r--r--emulators/mame/patches/patch-3rdparty_luv_src_dns.c24
-rw-r--r--emulators/mame/patches/patch-scripts_src_3rdparty.lua20
5 files changed, 97 insertions, 6 deletions
diff --git a/emulators/mame/patches/patch-3rdparty_bx_include_bx_thread.h b/emulators/mame/patches/patch-3rdparty_bx_include_bx_thread.h
index 343845b72ff..46e673246a9 100644
--- a/emulators/mame/patches/patch-3rdparty_bx_include_bx_thread.h
+++ b/emulators/mame/patches/patch-3rdparty_bx_include_bx_thread.h
@@ -1,13 +1,13 @@
-$NetBSD: patch-3rdparty_bx_include_bx_thread.h,v 1.1 2016/01/27 13:59:19 wiz Exp $
+$NetBSD: patch-3rdparty_bx_include_bx_thread.h,v 1.2 2016/03/04 12:47:13 wiz Exp $
Adapt to calling convention on NetBSD.
---- 3rdparty/bx/include/bx/thread.h.orig 2016-01-27 07:12:00.000000000 +0000
+--- 3rdparty/bx/include/bx/thread.h.orig 2016-02-24 07:02:17.000000000 +0000
+++ 3rdparty/bx/include/bx/thread.h
-@@ -150,7 +150,11 @@ namespace bx
- #if BX_PLATFORM_OSX || BX_PLATFORM_IOS
- pthread_setname_np(_name);
- #elif (BX_PLATFORM_LINUX && defined(__GLIBC__)) || BX_PLATFORM_BSD
+@@ -159,7 +159,11 @@ namespace bx
+ prctl(PR_SET_NAME,_name, 0, 0, 0);
+ # endif // defined(__GLIBC__) ...
+ #elif BX_PLATFORM_BSD
+#ifdef __NetBSD__
+ pthread_setname_np(m_handle, "%s", (void *)_name);
+#else
diff --git a/emulators/mame/patches/patch-3rdparty_libuv_src_unix_netbsd.c b/emulators/mame/patches/patch-3rdparty_libuv_src_unix_netbsd.c
new file mode 100644
index 00000000000..b22ebb1242d
--- /dev/null
+++ b/emulators/mame/patches/patch-3rdparty_libuv_src_unix_netbsd.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-3rdparty_libuv_src_unix_netbsd.c,v 1.1 2016/03/04 12:47:13 wiz Exp $
+
+--- 3rdparty/libuv/src/unix/netbsd.c.orig 2016-02-24 07:02:17.000000000 +0000
++++ 3rdparty/libuv/src/unix/netbsd.c
+@@ -18,6 +18,9 @@
+ * IN THE SOFTWARE.
+ */
+
++/* needs kernel internal types */
++#define _KMEMUSER 1
++
+ #include "uv.h"
+ #include "internal.h"
+
diff --git a/emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake b/emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake
new file mode 100644
index 00000000000..1028cb3fbb0
--- /dev/null
+++ b/emulators/mame/patches/patch-3rdparty_luv_deps_uv.cmake
@@ -0,0 +1,33 @@
+$NetBSD: patch-3rdparty_luv_deps_uv.cmake,v 1.1 2016/03/04 12:47:13 wiz Exp $
+
+--- 3rdparty/luv/deps/uv.cmake.orig 2016-02-24 07:02:17.000000000 +0000
++++ 3rdparty/luv/deps/uv.cmake
+@@ -138,6 +138,14 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES "FreeB
+ )
+ endif()
+
++## NetBSD
++if("${CMAKE_SYSTEM_NAME}" MATCHES "NetBSD")
++ set(SOURCES ${SOURCES}
++ ${LIBUVDIR}/src/unix/kqueue.c
++ ${LIBUVDIR}/src/unix/freebsd.c
++ )
++endif()
++
+ ## Linux
+ if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
+ add_definitions(
+@@ -187,6 +195,13 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES "FreeB
+ )
+ endif()
+
++if("${CMAKE_SYSTEM_NAME}" MATCHES "NetBSD")
++ target_link_libraries(uv
++ pthread
++ kvm
++ )
++endif()
++
+ if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
+ target_link_libraries(uv
+ pthread
diff --git a/emulators/mame/patches/patch-3rdparty_luv_src_dns.c b/emulators/mame/patches/patch-3rdparty_luv_src_dns.c
new file mode 100644
index 00000000000..82e8d172eef
--- /dev/null
+++ b/emulators/mame/patches/patch-3rdparty_luv_src_dns.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-3rdparty_luv_src_dns.c,v 1.1 2016/03/04 12:47:13 wiz Exp $
+
+Only use existing defines.
+
+--- 3rdparty/luv/src/dns.c.orig 2016-02-24 07:02:17.000000000 +0000
++++ 3rdparty/luv/src/dns.c
+@@ -150,13 +150,17 @@ static int luv_getaddrinfo(lua_State* L)
+ if (lua_toboolean(L, -1)) hints->ai_flags |= AI_ADDRCONFIG;
+ lua_pop(L, 1);
+
++#if defined(AI_V4MAPPED)
+ lua_getfield(L, 3, "v4mapped");
+ if (lua_toboolean(L, -1)) hints->ai_flags |= AI_V4MAPPED;
+ lua_pop(L, 1);
++#endif
+
++#if defined(AI_ALL)
+ lua_getfield(L, 3, "all");
+ if (lua_toboolean(L, -1)) hints->ai_flags |= AI_ALL;
+ lua_pop(L, 1);
++#endif
+
+ lua_getfield(L, 3, "numerichost");
+ if (lua_toboolean(L, -1)) hints->ai_flags |= AI_NUMERICHOST;
diff --git a/emulators/mame/patches/patch-scripts_src_3rdparty.lua b/emulators/mame/patches/patch-scripts_src_3rdparty.lua
new file mode 100644
index 00000000000..938ecb40438
--- /dev/null
+++ b/emulators/mame/patches/patch-scripts_src_3rdparty.lua
@@ -0,0 +1,20 @@
+$NetBSD: patch-scripts_src_3rdparty.lua,v 1.3 2016/03/04 12:47:13 wiz Exp $
+
+--- scripts/src/3rdparty.lua.orig 2016-02-24 07:02:17.000000000 +0000
++++ scripts/src/3rdparty.lua
+@@ -1153,6 +1153,15 @@ project "uv"
+ MAME_DIR .. "3rdparty/libuv/src/unix/kqueue.c",
+ }
+ end
++ if _OPTIONS["targetos"]=="netbsd" then
++ files {
++ MAME_DIR .. "3rdparty/libuv/src/unix/netbsd.c",
++ MAME_DIR .. "3rdparty/libuv/src/unix/kqueue.c",
++ }
++ links {
++ "kvm",
++ }
++ end
+
+ if (_OPTIONS["SHADOW_CHECK"]=="1") then
+ removebuildoptions {