SDL/X11 number mouse/lighgun buttons 1,2,3, while windows and other parts of
MAME like offscreen_reload expect 0,2,1. Transpose buttons 2 and 3, and then
-1 the button number to align the numbering schemes.
This fixes lightgun support on Linux - tested with an Ultimarc AimTrak and
the following config:
lightgun 1
lightgun_device lightgun
lightgunprovider x11
lightgun_index1 "Ultimarc Ultimarc"
offscreen_reload 1
Note: MAME must be compiled with XInput support:
make -j10 NO_USE_XINPUT=0
Fixes bug #4695
Game sometimes accesses RAM via kuseg, which on R3041 is mapped at a 1GB offset. RAM is also accessed via kseg0/kseg1, meaning the hardware must ignore at least A30.
For the following games: "Disney Princess - The Crystal Ball Adventure (USA)", "Disney/Pixar The Incredibles - Mission Incredible (USA)", "The Amazing Spider-Man - Countdown to Doom (USA, Rev. 1)", "Scooby-Doo! Ancient Adventure (USA, Rev. 1)", "Wacky Race on Jumpin' Bean Island (USA, Rev. 3)", "Shrek the Third - The Search for Arthur (USA)" and "Bratz - Fashion Pixiez - The Secret Necklace (USA)".
The only remaining game created from a CCD image is "Nickelodeon SpongeBob Squarepants - Idea Sponge (USA)".
vsmile_cd.xml: Nickelodeon SpongeBob Squarepants - Idea Sponge (USA Rev. 1), Nickelodeon SpongeBob Squarepants - Idea Sponge (USA Rev. 2), Nick SpongeBob Schwammkopf - Ein Schwamm voller Ideen (Ger), The Amazing Spider-Man - Countdown to Doom (USA, Rev. 2), Disney/Pixar Cars - In The Fast Lane (USA Rev. 1), Disney/Pixar Cars - In The Fast Lane (USA Rev. 3), Wacky Race on Jumpin' Bean Island (USA Rev. 2), Wacky Race on Jumpin' Bean Island (UK), Shrek The Third - The Search for Arthur (UK) [redump.org, ClawGrip]
Also replaced the CloneCD dump from "Disney/Pixar Cars - In the Fast Lane (USA)" with a verified image from credump.org (CloneCD is not fully supported by CHD)
-----------------------------------------
Advanced Pico BEENA: Fresh Pretty Cure [Team Europe, R. Belmont]
This is a little weird because it's a new system and we have a cartridge dump but not the BIOS.
Code refactoring makes the changes hard to isolate, but the main improvements are:
* implemented fpu instructions and exceptions
* corrected swl/swr implementation
* tlb mru lookup optimization
* interrupt and privilege debugger breakpoints