Commit Graph

88 Commits

Author SHA1 Message Date
retro-wertz
3d4ebd5b7b Add mapper 126
- supports the game, PowerJoy 84-in-1 Multicart (PJ-008)
2019-05-30 22:49:51 +08:00
retro-wertz
28e729177e Implement mapper 224 (kt-008) and add related games to ines-correct
- Most of these games are incorrectly assigned to Mapper 4. so correct it with hash
http://wiki.nesdev.com/w/index.php/INES_Mapper_224
2019-05-29 19:06:28 +08:00
retro-wertz
6fd12ed6bf BMC-8157: ignore prg mapping for split rom types
- fixes 1 of only 2 CK-001 4-in-1 carts i found so far
2019-05-27 21:35:12 +08:00
retro-wertz
005eb7bdc3 Implement mappers 28, 29, 31, 56, 63, 255, BMC-60311C, BMC-WS, BMC-HPxx
- Added a few mappers to the list. Tested with roms from goodnes set and some demos
- Fix IRQ for Kaiser7032/202 - Issue noticeable with SMB2/3's status status bar
2019-05-27 19:18:02 +08:00
retro-wertz
f9aa5e5462 Add dipswitch for VS games and Mapper105 (NWC) 2019-05-18 22:38:41 +08:00
retro-wertz
5c1ddf45d4 VRC7: Update instrument patch dumped by Nuke.YKT
https://wiki.nesdev.com/w/index.php/VRC7_audio#cite_note-2
2019-03-27 18:03:30 +08:00
retro-wertz
b09a060ae6 Wii related updates for save state fixes/workarounds (#246)
* Wii: Fix uninitialized save state size causing load state problems

- Issue origially from Wii and possibly affects similar devices where
retroarch and the core are one program. The problem was that the
serialize size was not reset when you change game, causing the last
serialized size to be carried over to the next game loaded causing save
state issues due to change in size. Initializing this variable during
retro_init() seems enough for most of the games.

- In this same observation, also initialized some variables in a similar
way.

- also exluded a variable used for sound state that was added for smooth
sound after load state which causes similar loading issues as well.

- default sample rate has been lowered to 32K as well as to minimize
some stuttering for these devices, while maintaining 48K sample rate for
others.

- Some comments are added to modified section as necessary.

* Add workaround for save state issue in Wii with expansion audio

- Some mappers are not loading states as well. Seems to affect those
that are using expansion audio. some of these mappers(bandai, mmc5,
namco106), the state variables has to be expanded so that it will
load states fine with big endian while others (vrc6, vrc7 sunsoft), some
variables that were added for smoother audio during load state has been
removed.

- This does not guarantee though that other mappers might not have
similar incompatibilities after loading a state but so far, some of the
most common roms in each mapper has been tested to load fine.

* FDS: Expand state variables for big endian compatibility

* FDS: Change OSD label from Disk 0 to Disk 1... when switching disks

- Minor osd label change that now shows Disk 1 of (# of disks) instead
of just Disk 0 Side nth.
2018-12-14 20:23:43 -06:00
retro-wertz
e3cf3efc69 fix vrc7 issue #235, update state.c (#245)
* vrc7: Add sound save states

* Try to fix some save state issues

try to fix big-endian related save problems

* vrc7: fix crash in some cases when loading states
2018-12-11 16:16:02 -06:00
retro-wertz
095fd57117 Fix audio states in VRC6 2018-12-05 15:52:20 +08:00
retro-wertz
b5803e0e1d c89 compliant? (#237)
* Replace C++ comments into  C comments

* Move INLINE out of Makefile.common, move to fceu-types.h

An INLINE define is still existing in Makefile.common for msvc (dont
have a way to to test that). Moved the rest into fceu-types.h using the
one already existing from emu2413.h.

* Increase maximum volume for apu channels
2018-12-03 20:25:17 -06:00
retro-wertz
829a7552f1 Audiostuff (#236)
* Add option to enable/disable audio channels

Audio options are backports from FCEUX. Options are set as on/off toggle for each apu channel.

Compile with DEBUG=1 to see options.

* Add missing audio state vars, fix for hq audio when using runahead

* Additional checks for save ram (battery)

* Cleanup

* Update libretro header
2018-11-29 19:22:36 -06:00
retro-wertz
e07255c87c Remove redundant memset() calls 2018-11-26 10:43:06 +08:00
retro-wertz
2bca72186d Mapper30: Backport 4-screen mirroring support
9b6ff8fe49
2018-06-15 11:30:23 +08:00
twinaphex
9ad88b9c11 Fix warnings 2018-02-21 14:46:01 +01:00
hizzlekizzle
5a813bd318 Merge pull request #202 from retro-wertz/m30
Mapper30: Update compatibility with libretro api
2018-02-21 07:37:11 -06:00
U-O1\User
d9fc4c0c87 Refactor state variables for expansion audio 2018-02-21 16:34:55 +08:00
retro-wertz
9ca78a78dc Mapper30: Update compatibility with libretro api 2018-02-18 11:53:48 +08:00
retro-wertz
2d76eb4a0f Change *.c and *.h end-of-line character to LF
change eol char to LF using dos2unix
2017-12-17 13:40:35 +08:00
hizzlekizzle
1d503ee692 Merge pull request #174 from retro-wertz/unrom
Mapper2: Change default behavior
2017-10-20 16:19:27 -05:00
retro-wertz
7a9d85fa7b Mapper30 cleanup 2017-10-20 12:20:00 +08:00
retro-wertz
a7bc1b3c5e Mapper2: Change default behavior 2017-10-20 09:01:57 +08:00
retro-wertz
1877360efc Mapper9: only PC10 has wram/battery 2017-10-18 10:43:45 +08:00
retro-wertz
15c0f1468c Mapper190: Layout update to look similar to others 2017-10-17 15:14:08 +08:00
retro-wertz
384d6a98ba Build fix and add comments 2017-10-17 12:49:12 +08:00
retro-wertz
c9f255b93c Mapper69: reg $D should awknowledge IRQ and no other 2017-10-17 12:07:45 +08:00
retro-wertz
3d4765ad74 Mapper57: fix mirroring 2017-10-17 11:57:21 +08:00
retro-wertz
52bfae1ab4 Replaced remaining C++ comments 2017-10-17 11:16:36 +08:00
retro-wertz
d72a5061ea Update 2017-10-15 19:48:51 +08:00
retro-wertz
52c8155dee Use C-comment style 2017-10-15 03:13:11 +08:00
retro-wertz
ebca2248d0 Start undoing C++ comments 2017-10-15 02:07:42 +08:00
retro-wertz
52281a4474 Update Ganbare Goemon Gaiden 2 to use Mapper21 based on sources 2017-10-01 23:39:19 +08:00
retro-wertz
3f0f8fe455 (mapper) Remove hack to "Ganbare Geomon Gaiden" credits, which was an actual game cart bug. 2017-10-01 21:26:14 +08:00
retro-wertz
b769573876 (mapper) Silence -Wunused-variablewarning 2017-10-01 20:51:36 +08:00
retro-wertz
edc2c3f677 (mapper) Cleanup Mapper 164 2017-10-01 20:11:57 +08:00
retro-wertz
30b0647c22 (mapper) Remove unused vrc5.c 2017-10-01 19:59:58 +08:00
retro-wertz
9c2179b2f7 Mapper9: Add support to M.Tysons Punchout (PC10) ranking feature 2017-09-07 18:26:21 +08:00
retro-wertz
f0a08edc6d [rt-01.c] silence warning [-Wimplicit-function-declaration]
Silence this warning, and possible android buildfix:
src/boards/rt-01.c: In function ‘UNLRT01Read’:
src/boards/rt-01.c:36:18: warning: implicit declaration of function ‘rand’ [-Wimplicit-function-declaration]
   return 0xF2 | (rand() & 0x0D);
2017-08-27 08:41:14 +08:00
hizzlekizzle
155d1f7cc7 Merge pull request #125 from retro-wertz/updates
minor updates
2017-08-24 09:42:21 -05:00
retro-wertz
08c9b25271 silence warnings 2017-08-24 06:57:24 +08:00
Oggom
ee9f96c540 Backport r183 - UNIF RT-01 - new dump "Dlya Proverki TV Pristavok" 2017-08-23 20:18:38 +02:00
twinaphex
90bed81e8f Another C89 buildfix 2017-07-01 10:59:58 +02:00
twinaphex
1e7e7bb27c C89 fix 2017-07-01 10:58:21 +02:00
retro-wertz
f0e2585c45 Merge branch 'update' of https://github.com/retro-wertz/libretro-fceumm into update 2017-05-10 12:04:14 +08:00
retro-wertz
8e4a482e4f Mapper158 - fix mirroring 2017-05-10 12:02:20 +08:00
retro-wertz
605b88f842 Update tengen.c 2017-05-10 04:16:56 +08:00
retro-wertz
d6cdc80894 Update tengen.c 2017-05-10 04:13:42 +08:00
retro-wertz
4759fe6433 add Mapper 158 2017-05-10 04:07:50 +08:00
retro-wertz
f6bcfada73 fix irq for Aladdin (SuperGame) (m4) 2017-05-09 18:45:16 +08:00
retro-wertz
80655f7ddf BMC-FK23C backport for big multicarts 2017-05-09 18:26:12 +08:00
retro-wertz
8d5ebaf9f3 fix Mapper57 mirroring... 2017-05-02 02:50:01 +08:00